##############################################################################
# $Id: ReleaseNotes,v 1.34 2001/09/17 10:12:50 amodigli Exp $
# $Name:  $
# $Revision: 1.34 $
# $Log: ReleaseNotes,v $
# Revision 1.34  2001/09/17 10:12:50  amodigli
# updated
#
# Revision 1.33  2001/09/10 15:39:29  amodigli
# Update for 1.2.0
#
# Revision 1.32  2001/07/16 08:01:50  amodigli
# update
#
# Revision 1.31  2001/07/16 06:33:53  amodigli
# Update
#
# Revision 1.30  2001/07/12 21:04:53  amodigli
# update
#
# Revision 1.29  2001/07/12 16:09:50  amodigli
# typo
#
# Revision 1.28  2001/07/12 16:04:17  amodigli
# Updated
#
# Revision 1.27  2001/07/04 16:10:22  amodigli
# Updated this ReleaseNotes
#
# Revision 1.26  2001/06/07 11:03:39  amodigli
# Updated
#
# Revision 1.25  2001/06/01 17:09:03  amodigli
# Updated to beta3
#
# Revision 1.24  2001/05/23 15:31:45  amodigli
# Updated reflecting 2 bug fixes and a way to
# define in one place only (setup) the pipe
# version number
#
# Revision 1.23  2001/05/19 07:34:23  amodigli
# Added specification beta1-beta2
#
# Revision 1.22  2001/05/18 11:10:18  amodigli
# Added purify/quantify capability
#
# Revision 1.21  2001/05/18 09:24:50  amodigli
# Several additions for 1.1.1
#
# Revision 1.20  2001/05/04 13:20:38  amodigli
# 1.1.1 beta1
#
# Revision 1.19  2001/03/12 07:20:31  amodigli
# Updated for release 1.1.0
#
# Revision 1.18  2001/03/05 15:27:51  amodigli
# Updated with new corr trap and hot pix commands
#
# Revision 1.17  2001/02/19 09:39:14  amodigli
# Updated to new directory structures and installation proc
#
# Revision 1.16  2001/02/12 14:52:14  amodigli
# Updated
#
# Revision 1.15  2001/02/09 18:29:46  amodigli
# Updated
#
# Revision 1.14  2001/01/25 16:14:42  amodigli
# Ready for Paranal
#
# Revision 1.13  2001/01/22 15:44:57  amodigli
# As delivered to ITAL-FLAMES consortia
#
# Revision 1.12  2001/01/04 13:07:21  amodigli
# Added Id, Name, Revision, Log conf. control info
#
##############################################################################
23/07/1999	0.5-BETA Vesion of the UVES pipeline
	. This release is no official delivery of the DMD.
	. The pipeline needs MIDAS 98NOVpl2.1.
	. The UVES pipeline is developped as a new MIDAS context: UVES.
	  This context is developped as a UVES data reduction software
	  package in an interactive user mode and automatic pipeline mode. 
	. The following main MIDAS commands are released as beta-versions:
		SPLIT/UVES
		MASTER/UVES
		ORDERP/UVES
		WAVECA/UVES
		REDUCE/UVES
		PLOT/UVES
		HARDCOPY/PLOT

	  which are tested on standard UVES data:
		- blue and red arm data
		- bias, flatfields, order flatfields, arclamp exposures,
		  science exposures (sun)
		- 1 port readouts
		- no window readouts
		- no binning
	  and are still under development.
	. Global settings for the main commands may be done by using DRS
	  setup tables or individual user settings (SET/ECHELLE) before
	  calling the main commands.
	. Wavelength units are Angstroems. As the typical wavelength range of
	  UVES is less than 1100 nm the setting of the global key WCENTER
	  will check for this (CONFIG/INSTR).
	. This release includes already MIDAS help files for the main commands.
	  In case of non-system installation (e.g. in your $HOME) then the
	  !HELP keyword in the context file uves.ctx has to be adjusted!
	. A Data Reduction Cookbook may help to process the UVES data
	  (see uves/Install directory).

30/08/1999	0.5.1-BETA Version of the UVES pipeline
	. The makefile of the pipe-sources (uves/pipe/src) had been cleaned
	  up and the complete directory had been re-structured. Sources of
	  subroutines migrated to the uves/pipe/libsrc directory and packed
	  to a new library libuves.a.
	. Some bug fixed due to report from Andreas Kaufer (akaufer@eso.org)
	  who tried to install the pipeline on a SUN/Solaris machine (previous
	  version 0.5 had been developed for HP-UX).
		- makefiles had been updated. Includes now the math library
		  (-lm) and the X library (-lXm).
		- installation makefile had been updated. The compilation of
		  the sources in the uves/echelle/src and the uves/spec/src
		  were missing.
		- The input file of the WAVECAL/UVES command gets wrong after
		  reading the DRS-setup table.
	. Help files:
		- minor bugs fixed
		- Use HELP=$PIPE_HOME/... in UVES-context file, automatically
		  finds all the help files.

06/09/1999	0.5.2-BETA Version of the UVES pipeline
	. SPLIT/UVES does a data classification if NO DO_CLASSIFICATION
	  descriptor exists. That is necessary for the standalone usage of the
	  UVES context (without pipeline environment).
	. MASTER/UVES now creates better product names. The data type as well
	  as the central wavelength may be read from the master frame name.
	. The uves_updtbl.prg is obsolete as the new MIDAS patch level (2.2)
	  has an updated version of the necbackprep.prg routine -- so this
	  routine is removed from the pipeline.
	. The default.mk from the system installation of MIDAS which is read
	  from each makefile is now specified as an absolute path.

20/09/1999	0.8-BETA Version of the UVES pipeline
	. Bug fix in SPLIT/UVES: the classification of the splitted data for
	  the BLUE arm data went wrong -- suffix _BLUE was missing.
	. PLOT/UVES changed: The x-axis are on the lower y-range level from
	  now on. The lower level and the y-range will be labeled.
	. REDUCE/UVES determines the variance of the extracted flatfielded
	  object and the error bars of the merged object. Thus the order
	  merging may be done by MERGE/OPTI using the variances as weights.
	. REDUCE/UVES allows to switch flatfielding off (P4). As soon as no
	  MASTER_FLAT may be found flatfielding will be switched off, too.
	. A preliminary version of the response determination of UVES created.
	  *NOT* yet included into the reduction scheme.
	. Bug fixed within necback.prg: get the correct version of necback.exe!
	. Help files now show the restricted keywords, keywords which are
	  always set by the command -- no user control!
	. SAVE/DRS now allows to overwrite DRS tables, help installed.
	. FORCE_DRS keyword added. This allows to force the usage of DRS setup
	  tables within the pipeline. In an interactive session this keyword
	  may be set to NO in order to be able to use the current settings
	  of the ECHELLE keywords (SHOW/ECHELLE).
	. Help file for VERBOSE/OUT included.
	. Cookbook (cookbook.ps) updated.

23/09/1999	0.8.1 Version of the UVES pipeline
	. The spec/proc tree was missing (CreaRelease.sh updated).
	. Some minor bugs fixed in:
	  uves_calmap.prg, uves_hcopy.prg, uves_mkmaster.prg
	. REDUCE/UVES: take as weights the inverse std.deviation.

29/09/1999	0.8.2 Version of the UVES pipeline
	. Return status of FINISH/PIPELINE is checked now!
	. Cookbook (cookbook.ps) updated -- sequence of sections changed!
	. Configuration files uves.bdd, uves.pdd updated: LINE_TABLEs are
	  now slit width sensitive!
	. Install makefile now accepts only gzipped tar files!
	. The optimal merging in MERGE/ECHELLE added. REDUCE/UVES updated
	  which speeds the reduction by a factor of 2!
	. Physical model computation in principle works for each central
	  wavelength and symetric binning (PREDICT/UVES).
	. New procedure to plot the residuals of the wavelength calibration:
	  uves_plt_resid.prg (more information on the plot).
	  --> WAVECA/UVES updated.
	. PLOT/UVES bug fixed.
	. Mean RMS computation added to  neciden.for, store the result in
	  the line table as AVRMS descriptor.
	. Save the wavelength calibration parameters DC,TOL and WLCOPT as
	  WCPARAM descriptor of line table.
	. Some minor bugs fixed.

18/10/1999	0.8.3 Version of the UVES pipeline
	. REDUCE/UVES calculation of the variance has been improved.
	  (thanks to Stefano Cristiani!)
	. WAVECA/UVES controls the OFFSET parameter.
	, ORDERP/UVES now works on standard stars, too.
	. SPLIT/UVES now classifies all calibration file in case the
	  DO_CLASSIFICATION descriptor is missing.
	. New commands:
	  a) PREPARE/CALDB
	     Prepares your calibration database, i.e it produces all the
	     calibration frames needed for a science reduction of a
	     certain central wavelength.
	  b) SAVE/CALDB
	     Save all your calibration solutions (products of PREPARE/CALDB)
	     in your calibration database.
	  c) GET/CALDB
	     Retreive all the calibrations needed for a science reduction.
	. Naming scheme for products of WAVECA/UVES and MASTER/UVES improved.
	. Some plotting routines improved.
	. Cookbook updated: CONFIG/DISP, PLOT/UVES, new section introducing
	  the new commands, and a session example at the end.

03/11/1999	0.8.4 Version of the UVES pipeline
	. Overwrite of local version of EXTRACT/ECHELLE and EXTRACT/OPTIMAL
	  command added in uves.ctx. Removed in REDUCE/UVES !
	. Some Numerical Recipe routines in libuves.a included used for the
	  optimal extraction (necopt.for)
	. Optimal extraction program improved: The order profils are now
	  determined by gaussian fits and polynomial fit to their parameters
	  along wavelength direction (smooth gaussian order profils).
	  Both, optimal extraction and cosmic ray rejection improved a lot.
	  The cosmic ray detecions are saved in a table (crmask.tbl).
	. REDUCE/UVES:
	  - improved optimal extraction implemented.
	  - sky extraction windows are nomore on fixed positions and
	    their cosmic ray rejection is improved by median filtering.
	  - binning is taken into account, assuming the SLIT keyword is
	    properly set -- using DRS tables this is guaranteed.

12/11/1999	0.8.5 Version of the UVES pipeline
	. Pipeline configuration files (uves.bdd, uves.pdd, uves.dpr, and
	  uves.ehr) updated for handling of standard stars.
	. The response recipe: uves_cal_reponse.prg embedded into pipeline
	  configuration (*.rrd, *.rri, *.prg).
	. Put a copy of the reference catalog of standard star spectra from
	  FORS pipeline into the calibration database.
	. New commands:
	  - RESPONSE/UVES
		Determine the response of the instrument.
		(not fully tested!)
	  - ALIGN/STD
		Find the corresponding standard star flux reference
		to an given wavelength calibrated standard star spectrum
	  - EXTRACT/T3D, GET/REFFLUX
		These are copies from the FORS pipeline in order to be able
		to handle the reference catalog of standard star spectra
		which is saved as a 3D table. Both are low level routines
		and are used by ALIGN/STD
	  - TRANSF/COSM
		Transform cosmic ray rejection (PIXEL-PIXEL space) into
		PIXEL-ORDER space in order to be able to identify cosmic
		ray corrections on the extracted orders.
	. REDUCE/UVES:
	  - bug for order profil fit fixed (gaussian fit improved).
	  - bug fixed: cosmic ray rejection table will now created for any
	    flatfielding method!
	  - cosmic ray rejection table contains all rejected pixels in
	    pixel-pixel space.
	. help files updated/created:
	  REDUCE/UVES; RESPONSE/UVES, ALIGN/STD, TRANSF/COSM.

26/11/1999	0.8.6 Version of the UVES pipeline
	. EXTRACT/ORDER
	  New extraction method added: EXTMTD=MEDIAN.
	  This does an order extraction using the median instead of
	  the mean for EXTMTD=AVERAGE.
	. WAVECAL/UVES:
	  - save the offset of the sky window line table in its
	    descriptor OFFSET. This one will be read in REDUCE/UVES
	. REDUCE/UVES
	  - check OFFSET descriptor of sky window line table in order
	    to find best matching line table for an offset object.
	  - the automatic OFFSET determination of the object may be
	    switched off (parameter P7)
	  - EXTRACT/ORDER with EXTMTD=MEDIAN implemented for the
	    sky extraction (increases process speed!).
	  - Bug fixed for object spectrum with high order offsets.
	. MASTER/UVES
	  - bug in product names fixed.
	. RESPONSE/UVES
	  - still in testing phase.
	. Help files updated.
	. Cookbook updated.

10/12/1999	0.9 Version of the UVES pipeline
	. Recipe: UVES_CAL_WAVECAL
	  - parameters P5 and P6 added which are the same as in WAVECAL/UVES
	    so that they can be controlled via the pipeline.
	  - rrd and rri-file updated due to the changed parameters.
	. Recipes:
	  - the main product specification was missing for the call of
	    FINISH/PIPELINE
	. WAVECAL/UVES
	  - the sequence of the parameters had to be changed!
		P5: resolution plot switch	(P6)
		P6: object line table switch	(P7)
		P7: save as FITS file switch	(P5)
	. EXTRACT/OPTIMAL (Echelle context)
	  - gaussian model implemented (many thanks to Stefano Cristiani!)
	  - take account for the flatfielding when variance is calculated
	    in necopt.prg!
	. REDUCE/UVES
	  - uses the new version of EXTRACT/OPTIMAL
	. RESPONSE/UVES
	  may still not be used due to lack of high resolution flux
	  standard catalog.

21/12/1999	0.9.1 Version of the UVES pipeline
	NEW:
	. CCDTEST/UVES (uves_ccdtest.prg)
	  NEW PROCEDURE which performs tests of the CCDTEST context to
	  check CCD characteristics (linerarity, RON, GAIN, ...). It makes
	  use of the following procedures which are slightly changed copies
	  of the CCDTEST context:
		- uves_ccdtestb.prg
		- uves_ccdtestc.prg
		- uves_ccdtestt.prg
	. EFFICIENCY/UVES (uves_efficiency.prg)
	  Efficiency procedure from Andreas Kaufer
	. uves_extrref.prg
	  NEW PROCEDURE for administrational purposes: extracts the reference
	  frames (products of the pipeline) from an image input catalog.
	. Shell scripts for GASGANO added to the uves pipeline distribution:
		uves_popul.sh	populate the calibration database
		uves_resol.sh	produce resolution plot
		uves_reducOPT.sh do a science reduction (optimal extract)
		uves_dosubmit.sh submit a file to DO
		uves_plot.sh	create plots using PLOT/UVES
	  (CreaRelease.sh updated.)

	CHANGED:
	. REDUCE/UVES (uves_reduce.prg)
	  Use full slit in case of OPTIMAL extraction.
	  This is prepared in ENTRY DET_SKYWIND but disabled
	  again for test purposes.
	. PREDICT/UVES (uves_predict.prg)
	  The binning has to be considered for the measure box MBOX !
	  Improved NBORDI determination - select central column to detect
	  the number of orders (as it is done also in DEFINE/HOUGH).
	. CONFIG/DISP (uves_creadisp.prg)
	  Due to problems with niceRBS pipeline(5) check reset to
	  'pipeline(5).eq.0' instead of '.ne.1' (previous version saved).
	. CONFIG/INSTR
	  Determine the wavelength range (WLRANGE)
	. PREPARE/CALD (uves_prepcal.prg)
	  Had to change the INTERFACE !
	  Now you pass only two catalogs, one with the raw data
	  (ARC_LAMP_FORM_x, ARC_LAMP_x, ORDER_FLAT_x) and a
	  second with reference data (LINE_REFER_TABLE and
	  optionally MASTER_BIAS_x)
	  !!! HELP-file has *NOT* been update until now !!!
	. PLOT/RESOL (uves_plt_dispres.prg)
	  Save the resolution statistic as descriptors in a table. This is
	  thought as preparation for the logging system at Paranal.
	. RESPONSE/UVES (uves_resp.prg)
	  As RESPONS/UVES of the 0.9 release had been in a testing condition
	  without having reached a satisfying solution I returned back to the
	  version of the 0.8.5 release, the starting point of the test made
	  until now. RESPONSE/UVES now calls the efficiency procedure from
	  Andreas Kaufer.

11/03/2000 0.9.2 Version of UVES pipeline (AM, OB):
          NEW: 
        v Changed Rules to appropriately treat Image Slicers
        v Changed uves_reduce.prg to appropriately treat Image Slicers
        v Debug optimal extraction:
          v Skip an order is its center reference position has a distance
            from the CCD upper or lower border less than half of the slit
            (extraction window). This was resulting in Imin=Imax and in
            the end in a tentative of access to negative elements of an array.
          v Identified and solved the problem of failing termination
            -classification of optimal extraction: optimal extraction was
             producing NAN values for the variance.
            Now we make this occurrence minimal (adjusting AVERAGESTEP)
            and catching any event of negative DELTA and eventually
            forcing the VARIANCE to be a finite number.
          v Fixed some minor bugs.

18/03/2000 0.9.3 Version of UVES pipeline (as left leaving Paranal, AM):
        v Better tested Optimal Extraction:
          v verified that it does not fall in any infinite loop
          v verified with strong sources (standard stars): it may be improoved.
          v find out problem in r860:
            It is due to a bad FF:
              v change FF r860: 2x2,1x2,2x3
              v test r860 with new FF: 2x2,1x2,2x3
                v still present some sky emission lines noticeable
                  with a faint Quasar source: the sky lines are indeed
                  well subtracted but are so intense that even when dimmed
                  are relatively relevant with faint objects.
                v checked with MIDAS position of Sky lines
                v Better check Sky subtraction:
                  v noticed that strong sky lines are dimmed by Optimal
                    extraction of a factor 35-100. Weaker ones of factor
                    7-15.
                  v If I increase the chunk size up to 64 appears again
                    singular gaussj-ask to tipe go to continue.
                    go is equivalent to "continue" not to return.
                    If I sobstitute pause with print+return the problem
                    is circunvented (gaussj is skipped).
                    Moreover for chunk size = 64=> DELTA=NAN
                    this also if ALPHA is small (0.00001)
                    NAN is not recognized as .GT. e8 
                    So in the end I decided to have chunk size < 64.
                    I could have 32 but I come back to the original value 
                    of 16. With chunk=4 the spikes increases.
                  v prepared plots of 
                    [(av-base_av)/(i-base_i)/(base_av/base_i)]^-1.
                  v prepared plots of
                    [(opt-base_opt)/(i-base_i)/(base_av/base_i)]^-1.

          v verified sky subtraction is proper in Blue arm
          v better comment necopt.for: it could even better.
          v Fixed REDU8601x2Dic2 problem with missing REDUORDER.tbl=>negative 
            sample=>crash: We found that SAMPLE was negative. 
            I've put a simple work-around: SAMPLE = 2/3*"{{LINTAB},PIXEL(1)}"
            in case SAMPLE is .LT. 0.
            Next we discovered that SAMPLE is defined by GET/SAMPLE which is 
            implemented by necompix.for which does NOT use the physical model.
            So we decided to adopt the work-around allways (before we will
            change the GET/SAMPLE implementation referring to the Physical 
            model).
          v Noticed still problems with FF in several cases: 860, 437
           v try to look at them again
          ->.play with variance evaluation constants
            .try to see if AMPERR (=100 if ALPHA>0.9) value can affect it.
         v tested pipeline on last night observations.
         v produced plots and a procedure to test sky lines suppression.
        v Average extraction:
          v It seems that in this case is not produced the final big graph
          v verify sky subtraction is proper in Blue arm
          v produced some plots which demonstrate this
        v Test compatibility of UVES and FORS2 pipelines
          v Inserted a refresh/display inside a UVES pipeline
            initialization procedure
        v Fixed the makefile installation procedure

	v Response correction of the science frame (RESPONSE/UVES):
          see below UVES_CAL_RESPONSE
	v The sky correction is still problematic.
        v Residual bugs
          v UVES_CAL_MKMASTER: 2 typos in uves.dpr. Fixed.
          v UVES_CAL_PREDICT : 0 errors
          v UVES_CAL_ORDERPOS: 2 RBs failing because WLEN is not standard
                               
          v UVES_CAL_WAVECAL : 6 RBs failing because ThAr table was empty
                               (error committed during the observations)
          v UVES_CAL_RESPONSE: No standard Star could be identified:
                               Some (HD60753, HE-940-1050) indeed are 
                               out of the uves_flxstd.tfits table list.
                               Other (LTT2415) is present but missing
                               an entry in TYPE column.
                               Others are present (LTT3218, Feige56, Feige 66)
                               Finally the problem resulted due to having 
                               chosen a window width limit too small:4.0 
                               arcsec
                               Relaxing it to 60.0 arcsec fixed the problem.
                               Naturally if an observer choose to look at a 
                               star not present in uves_flxstd.tfits the 
                               pipeline is going to fail.
         v UVES_OBS_SCIRED Are still present spikes. Those could be due to:
                            1) bad columns in the BIAS (2 narrow strips
                               parallel to the dispersion axis are present)
                            2) The strong ghost in R860
                            3) Not perfect FF (expecially observing dim 
                               sources)
                            Bad in B3461x2
                            0 errors
        v UVES_CAL_CCDTEST  Fails
        v tested POLY with B346 2x2 R580 and R860: Better SPLINE
        v tested workaround of GET/SAMPLE from Olivier: IT DOES NOT WORK
        v Set plot scale in graph to medium: decided NOT to do
        v Test Optimal Extraction with STD stars: we need to relax the OE.
        v Checked if CreaRelease is OK to prepare something leaving Paranal.
        v tested pipeline with image slicers: found problem related to NAME
          lengh in DO data product: REDUCED_SCIENCE_SLICER_BLUE is > 25 chars.
          Finally we decided to change in uvesinit.prg REDUCED in RED
       ->.look at image slicers data
        v clean up unnecessary output from Optimal Extraction
       ->.verify interorder background evaluation in 860 is proper
       ->.Check out wrong data and prepare final report
         .Update documentation
         

20/03/00 (AM,OB):
       v To improve Optimal Extraction Results Quality:
         v modified necopt.for to include in thresh a term proportional
           to S/N. This changes improve quality of high S/N data without
           degrading the one of low S/N ones.
         v to improve weights image included in necopt.prg in the variance definition
           a term proportional (0.001) to the input image to describe any
           possible source of error coming from the Flat Field estimation.
           This changes should better evaluated as we noticed that with very
           high contributes (ff_fct=0.1) the final fit of the spatial profile
           is slightly degraded.   
         v Modified uves_wavecal.prg and uves_plt_resid.prg to include some
           missing checks on nice_crea to allow to run the pipeline without
           displaying results on graphycal terminals as requested from 
           Reinhard Hanuschik (UVES QC responsible).
         v Included UvesInstall.sh script in Install directory under config control
         v Included UvesVersionNumber in Install directory under config control.
         v Updated CreaRelease accordingly
         v Updated ReadMe file accordingly
         v Updated makefile of Install directory to the small modification made
          on Paranal.
         v Updated gasgano scripts to refer to $PIPE_HOME in loading the uves context.
           This should be improved to make a check on the definition and existence of
           the $PIPE_HOME environment variable.  
        v Tested new CreaRelease and new Installation on HP and Sun 
          and updated ReadMe
26/5/00 (AM, OB) 

       v Now in Optimal Extraction Results Quality the threshold part
         proportional to S/N is calculated not only every order but also
         foreach column.
       v Updated documentation.
       v Created tutori/uves command
       v prepared everything necessary for a CD ROM with MIDAS 99NOVpl2.1
         and Fors1/2 and UVES pipeline. It has also some examples of RBs. 
       v Updated UVES manual including  M. Peron and A. Kaufer comments. 
       v Included the cookbook on UVES/CONTEXT and pipeline.
       v Updated scripts now referring to $PIPE_HOME environment directory
         if defined, or to $MIDASHOME/$MIDVERS/pipeline/ if not, as root
         directory were the pipeline is installed.
       v Add extra products (plt files) somewere as requested from 
         Reinhard Hanuschik (UVES QC responsible).
       v checked that pipeline works fine with NO DISPLAY option 
       v Included some QC1 parameters in MIDAS tables.         
       v Updated/corrected header description of Gasgano scripts as from A. Kaufer.
       v fixed a small bug to Alpha Linux: in /chelle/pipe/necdispres.prg
         a DEFINE/FIELD from size 50 C to size 56 C (multiple of 8).
       v Fixed 2 apparent bug at run time on ALPHA LINUX in optimal extraction:
         /uves/pipe/libsrc/gauss_fit.c on Linux Version does not allow exp(-arg)
         with arg > 300. => put a work-around.
         /uves/pipe/libsrc/mrqmin.c does not allow e^arg with arg > 36.
         Put a workaround.
       v Identified and fixed also 2 bugs in MIDAS pkg. One similar
         in the CENTER/GAUSS command (center.exe). Another in the
         ECHELLE pkg (necdef.c: in order definition was hitting, on 
         ALPHA Linux machine the y frame border). Fixed. 
                  
       
14/06/00  (AM, OB)
Version: "1.0.0" pre-released for CDROM
  
       v QC1 parameters (in WAVECAL)
       v fixed label shift problem with 99NOVpl2.1  
       v fixed some compilation portability problems to DEC ALPHA:
         uves_example.c             messlevel=3; => int messlevel=3;
         uves_example_2.c           messlevel=3; => int messlevel=3;
        
         uves_badpix.c              commented out: char* malloc();
         uves_replcol.c             commented out: char* malloc();  
         uves_extract.c             commented out: char* malloc();
         
       v TUTORI/UVES
       v CDROM release
  
30/06/00  (AM, OB)
Version: 1.0.0 released to DFO and CDROM
    
1.0.1:  Upgraded CDROM
       v QC1 parameters for fmstab (Formatcheck)
       v Some cleaning and a bug fix in date notation for wavecal 
       (eliminated ":" substitution with "/")
       
 
12/08/00    (AM)   
1.0.2  v Patch to Reinhard to include physical model plots as extra
         column XDIF, YDIF, XPRED, YPRED in line table.
       v First fersion of 2d science extraction (keeping spatial resolution)       
       v uniformed ops.log name as output of uves_wavecal.prg 
       (uves_plt_dispres.prg)
       v tested DO to fix problema of RB with wavecal/change DO_CLASS for 
       guess table
       v moved check on IS selection from entry REDUCE to entry DET_SKYWIND 
       as asked from AKA
       v defined/iplemented criteria to judge QC of physical model predictions:
         8 new QC1 Pars:
         QC1.NALL QC1.NSEL,  
         QC1.PHYS.DX.MEAN, QC1.PHYS.DX.MEDIAN QC1.PHYS.DX.SIGMA
         QC1.PHYS.DY.MEAN, QC1.PHYS.DY.MEDIAN QC1.PHYS.DY.SIGMA
       v Information on Earth to HELIO centric coordinate transformation 
         inserted as FITS key in uves_reduce 
       v Information on Air to vacuum wav correction  
         inserted as FITS key in uves_reduce 
        
        
28/09/00 (AM)
1.0.3  v First working version of 2d extraction
       v Added monitoring of FWHM during optimal extraction as QC parameter    
       v First investigation on S/N exprerssion value: now it is 
         sqrt(Imed*FWHM*CONAD) where Imed is the medium intensity over the
          central 50 pix, FWHM the constant FWHM in the order, CONAD the
          conversion factor between ADU to electrons.
       v Fixed a problem on drs_setup table produced from wavecal. Now we refer
         to LINE2 (obj line table) in the command save/drs (before was used 
         ORDTAB). This gives correct MJD_OBS.
10/10/00  (AM)
1.0.4        
       v Fixed Problem in uvespopul: orderpos step was failing for some 
         conf. (R750 2x2).
         It is due to using SAVEINI/ECH using a drs_setup generated from 
         the phys model which gives a geometrical spectral format wider than 
         the actual one
         (in this case lower part of the detector chip is under exposed).
         To fix the problem introduced QC check (stat/tab ORDTAB :RESOLUTION) 
         and if (SIGMA > 1.0 A) repeat HOUGH Transform
         setting NBORDI=NBORDI-1. Exit if NBORDI<1. Created 6 new QC parameters
         QC RESID MIN/MAX/MEAN/SIGMA and QC ORDPOS ORD PRED/DET as QC1 Log and 
         as FITS key.
       v with new formula of S/N agreement within 20% with post-processed data.
       v Fixed a small bug in 2d extraction: it was not dividing slit size for 
         bin_size.
       v adjusted CreaRelease, setup, makefile, uvesInstall.sh to be compliant
         with new MIDAS pipeline phylosophy.
         
11/10/00 (AM)
1.0.5 
       v Purify and Quantify
       v Fixed a few bugs in echelle/src F77 programs appearing using debug 
         compilation option 
       v added ESO HIERARCH Keywords in uves_efficiency.prg for EFFICIENCY table
       v added Reduced (r_rbf0_b.bdf) frame as main product of the
         UVES_CAL_RESPONSE
         modified uves_resp.prg and uves_init.prg (to add a new keyword)
       v eliminated in 2d extraction some unnecessary calls to REBIN/ECH2D
         coming
         after a compute/ima to not have strange results.
       v defined procedure to correct trap column
       v big problem with optimal extraction: the position of the object 
         is determined
         just with linear approximation. Instead it is at least quadratic 
         (in not cubic).                 
          
13/12/00
1.0.6  (AM)
       v Found solution to optimal extraction: the problem was twofold:
         a) Order still curved, with curvature changing sign.
         b) LSFIT was not able to fit a parabola (probably it was a wrong 
         modified version of Numerical Recipe LFIT, not properly treating 
         the masking of points).
         Solutions:
         a) allowed parabolic shape with checks on slopeness and curvature 
           in case of scattered points (evaluation of chi-2 between first
            parabolic fit and chunk position points). In case they are 
            above fixed limits the fit becomes linear.
         b) changed the fitting routine. Now we use LFIT (origional version
          from Numerical Recipes) with simulated masking imposing a big 
          (10^6) error on the masked point.
         c) Precleaning of "strange" chunk positions according to parameters 
         (limits on order slopeness and curvature, thresholds on points 
         above (N) or below (M) N/M sigma in associated error) to be trimmered.
       v adopted new formula for S/N evaluation: it considers medium S/N 
          at order center. 
       v Added 2 product debug.tbl and debug2.tbl which contains 
         respectively crucial informations on chunk positions and 
         fitted polynomial, and x-order profiles for each chunk to do QC checks.
       v prepared 2 procedures MPLOT/CHUNK and PLOT/CHUNK to plot QC 
         parameters in chunk position fitting: one plots each order, 
         the other all the orders in a matrix plot (MPLOT/CHUNK) and can be 
         used in background automatic mode. 
       v improve optimal extraction performance: increase IXWIND, 
         now it is at 16
       v improve 2d extraction quality (problem with use of COMPUTE/IMA:
         if one use REBIN/EC2D after COMPUTE/IMA one can get strange results. 
         Temporally fixed)
       . 2d extraction shows some intensity ripples along the extracted order.
       v upgraded cookbook
       v defined as local IN_C in necexor.prg to not to have 
         interaction problems
         with FORS pipeline due to a different sizing of wat before was a global
          key.
       v Fixed some problems of MPLOT/CHUN with 99NOVpl1.1 in title
         positioning/sizing

22/01/01 (AM)
1.0.7
       v Noticed that also FWHM of X-order obj profile has a slope and 
         a curvature 
         along X. Implemented a parabolic dependence.
       v Added a pre k-sigma filter on 2 sigma respect to mean obj pos and fwhm
       v Added $Id $Name $Log info in all pipe files
       v fixed several compilation errors with Lunux and new g77 FORTRAN
        compiler
       v improved PLOT/CHUN and MPLOT/CHUN graphical infos and created help
        entries.
       v renamed debug.tbl and debug2.tbl as order_trace.tbl and
        xorder_trace.tbl with DO catg ORDER_TRACE_x and XORDER_TRACE_x
       v added P7=[Y]/N,[Y]/N,[Y]/N as multiple parameter to check setting of
          offset slit and skywind parameters
       v fixed small bug on uves_mkmaster.prg: the bias has to be subtracted
         BEFORE the flat field level is corrected for the exposure time
       v fixed some run time error due to use of TBEPUT. Used now TBRWRR.
       v Noticed that if we change IXWIND from 16 to 64 speed in main loop
         improves of 45%, or 25% in total time. The drawback is to have 
         few point to define the order trace. Still kept IXWIND=16
       v fixed small bug in uves_obs_scired.prg in dealing with P8 to set 
         2d extraction options. Added P8 also in uves_obs_slicer_scired.rri 
         and .rrd
       v switched to N,MIN,E,A default setting for 2d extraction parameter.
         This means that as default 2d extraction is not performed.
       v updated cookbook.
  
23/01/01  (AM)
1.0.7-Paranal
       v Reviewed chunk outliers pre-cleaning sequence. Added escapes to Average
         fit in case also the linear is bad. Restricted che chi-square 
         thresold to 0.5 (was 1.0) and relaxed the correspondinbg thresholds 
         on slopeness and curvature above the chi threshold, more strict 
         the ones below.
       v Done a few modifications on MPLOT/CHUNK to allow automatic fit 
         to graphical window size.
       v Included some changes in uves_efficiency.prg as indicated from AKA. 
         During the commissioning of grating CD#4B, it turned out that the 
         lack of sky subtraction for the standard stars is a severe limitation.
       v Fixed an error in average extraction: the sky extraction should be done
         on BOTH sky window with MEDIAN method (AVERAGE does not remove cosmic).
       v Added checks on skywind values if changeSkyW(1:1)="N"

1.0.8 (AM)
       v Add several QC keyword for UVES calibration products
       v on ALPHA Linux, g77, MIDVERS=test may occur problem, in PREDICT/UVES 
         or WAVECA/UVES when display a rectangle box around a 
         predicted/detected line id. This as despite the central point is on 
         the detector (image) the box margin may fall outside. This is 
         not present on HP-UX and Sun-Solaris.Fixed at Midas level.
       v updated uves.ctx uvesinit.prg gasgano scripts makefile, added setup, to
         be compliant with ipip and new pipeline directory structure for 01FEB
       v Updated ReadMe, NewCreaRelease, setup to reflect new pipe directory
         structure and installation procedure.

1.0.9 (AM)
       v written high level documentation
       v automatic elimination the trap column in bias images
       v procedure for automatic removal of hot pixels: FIND/HPIX, CREATE/TRAP,
         CORRECT/TRAP, CORRECT/HPIX
       v upgraded documentation
       v in dpr file now the recipe name executed is in lower case as the RBS
         became case sensitive.

1.1.0 (AM)
       v upgraded documentation
       v simplified makefile (eliminated VERSION and so link to directory tree)
       v renamed some commands: 
         CREATE/TRAP -->FIND/TPIX
         CREATE/DEAD -->FIND/DPIX
         CORRECT/TRAP -->CORRECT/TPIX        
         upgraded help commands
       v correpondently modified call for correcting TRAP col in uves_mkmaster.prg
       v writing descriptor ESO.PRO.QC.BP.CORR (value "TRUE") if bad pixel correction
         (CORRECT/TPIX or CORRECT/HPIX) is applied (the descriptor help specify if
         it has been applied Trap col correction or Hot pidx correction).        
       v check on MPLOT/CHUN on allowed values of parameter P3 (switch)
       v check on PLOT/CHUN on allowed values of parameter P5 (switch)
       v added on PLOT/CHUN missing definition of variable pid
       
1.1.1-beta1:
       
Who         When       Why                           Where                What

AModigliani 30/04/01   Improve bkg extraction        uves_ordpos.prg      Changed BKGSTEP from 100 to 50*sizeX/4096 
                                                                          where sizeX is the X size of the CCD detector.
                                                                          So now take in count of windowing (BLUE) and binning
                                                                          to have always the same number of sampling points
                                                                          in all the settings.
                                                                          Changed BKGSMO from 1000 to 0 to have better precision
                                                                          Set BKGDEG to 1
                                                                          
                                                     uves_predict.prg     Changed sintax to cal uves_ordpos,SETDRS {DRSTAB} {p1}
                                                                          now requiring as second parameter the input raw frame
                                                                          to get the binning                                                                         
                                                     uves_mkmaster.org    Added post-bkg-extraction smoothing on X and Y. 
                                                                          different X smoothing for BLUE and RED data.
                                                                          different Y smoothing for R860 to prevent problems
                                                                          due to the structure and the ghost.
                                                     uves_reduce.prg      Similar to uves_mkmaster.prg but with different values                                                                                     uves_reduce_2d.prg   to have a smooth bkg image also in presence of lines.
                                                     uves_reduce_spat.prg
                                                     uves_efficiency.prg

AModigliani 30/04/01  QC of bkg extraction           uves_backgr_qc.prg   Created procedure to do QC on bkg

AModigliani 30/04/01  Add RB info as PRO QC          uves_proheadinit.prg Added procedure to put RB info (input raw frames-
                                                     uves_proheadout.prg  input calib frames-recipe name, recipe's parameter
                                                     uves_proheadfinish   values, recipe start/end etc..) as PRO QC in the 
                                                     all files in uves/rec pipeline products FITS header. Defined par PROHEAD/INIT, 
                                                     uvesinit.prg uves.ctx   PROHEAD/FINISH, PROHEAD/OUT
                                                     uves_init.prg
                                                     
AModigliani 30/04/01  Fix bug in opt extraction      necopt.for            Increased INFO buffer size from 72 to 100. The bug
                                                                           was due to the extremply long size of the input file
                                                                           to be reduced which required 75 chars for INFO buffer.

AModigliani 30/04/01  Log QC info                   uves_qc1_log.prg       Created procedure to log QC(1) info in ops.log and frame 
                                                    uves.ctx                FITS header files. Defined command QC1LOG/OUT.                                                                                                                                                                                                      AModigliani 02/05/01  Update version number         uvesinit.prg           Updated version number
                                                    setup.sh    
                                                                                                                                                    
AModigliani 04/05/01  Bug fix                       uves_reduce_2d.prg     A typo created a bug.
                                                                                                                                                                1.1.1-beta2                      
AModigliani 16/05/01  Catch comp. errors            makefile               In case of error exit 1

AModigliani 16/05/01  typos                         setup                  Fixed some typos in syntax of echo

AModigliani 18/05/01  Add checksum info             uves_proheadinit.prg   Changes to support checksum
                                                    uves_proheadfinish.prg moved reci key def to uvesinit.prg
                                                    uvesinit.prg           Keys to support checksum, added reci key def.
                                                    fitsmd5.c (/pipe/src/) Added module
                                                    
AModigliani 18/05/01  QC on optimal extraction      uves_mplot_xchun.prg   Added module to display x-order profiles from xorder_trace_x.tbl
                                                    uves_plt_title.prg     Added module to display header title in multiple plots procs for QC
                                                                           on optimal extraction
                                                    uves_plt_set_size.prg  Added procedure to get size of screen frame.
                                                    uves_mplot_chun.prg    referred to uves_plt_title.prg and uves_plt_set_size.prg
                                                                           to simplify the procedure.
                                                                                                                                                      
AModigliani 18/05/01 Info                           Disclaimer.txt         Added disclaimer on UVES pipe
                                                    makefile               Modified to add Disclaimer.txt in target installation dir
                                                    NewCreaRelease.sh      Modified to include Disclaimer.txt and HowToInstallForUser.txt
                                                    HowToInstallForUser.txt Added info on installation procedure
                                                    README_uves             Added/updated README_uves from cdrom release   
                                                    
AModigliani 18/05/01 Uniform notation               uves_mplot_title.prg   Improved notation to be displayed.
                                                    uves_plt_set_size.prg  We refer to this to get graphic size
                                                    uves_mplot_bkg.prg     All these files make reference to 
                                                    uves_mplot_chun.prg    uves_mplot_title.prg and uves_plt_set_size.prg
                                                    uves_mplot_xchun.prg1  to uniform info to display and simplify proc.

AModigliani 18/05/01 Change command reference       uves.ctx               MPLOT/BKGR now points to uves_mplot_bkg.prg (before uves_backg_qc.prg)                                                                                          AModigliani 18/05/01  Allow purify/quantify         makefile uves/echelle/spec                                                               uves/pipe/libsrc
                                                             uves/pipe/src
                                                             uves/spec/src                                              purify-quantify.mk   uves/Install/  fully commented file
                                                                                                                       
1.1.1-beta3

Amodigliani  23/05/01 Bug Fix                       uves_fmtstab.prg       Fixed portability run time error in Alpha linux
                                                                           To calculate median of LINTAB we copy/ti on an ima
                                                                           and do stat/ima. As the table has indefined entries
                                                                           the ima may have -Inf values on which only on alpha
                                                                           MIDAS stat/ima breaks. The problem was fixed doing
                                                                           a preselection on :SELPLOT=1 so that no undefined
                                                                           value occur. This eliminates -Inf values in ima.
                                                                           The found median is the same as before.
                                                                           
Amodigli     23/05/01 Bug fix                      uves_mkmaster.prg       Only on alpha noticed error due to wrong way to pass
                                                                           frame name as parameter to a procedure. The double quotes
                                                                           were creating the problem (only on alpha-linux).
                                                                           
Amodigli     23/05/01 simplification               uves.ctx                Created uves_get_pversion.prg to set on the fly the UVES
                                                   uvesinit.prg            pipe version id. This is now defined only in setup which
                                                   uves_init.prg           creates the file UVES_VERSION under $PIPE_HOME/uves. This file
                                                   uves_get_pversion.prg   is read from uves_get_pversion.prg to set p_version. uves_init.prg
                                                                           call uves_get_pversion.prg. Also uves.ctx call uves_get_pversion.prg
                                                                           The old place were the p_version was set was uvesinit.prg                                                                       
                                                                                                                                                      
Amodigli     31/05/01 code review                  uves_reduce.prg         DFS Code review step1: mainly pseudocode
                                                                           and a few more comments.
                                                                           Was missing the Who/When in some entries

Amodigli     30/05/01 code review                  uves_psf.c              Taken out error check disabling

Amodigli     30/05/01 code review                  physmodtbl.c            Taken out error check disabling

Amodigli     30/05/01 code review                  uves_qc1pmtbl.c         code cleaning (DFS code rev step1)

Amodigli     30/05/01 code review                  uves_qc1logtbl.c        code cleaning (DFS code rev step1)

Amodigli     30/05/01 code review                  uves_plt_set_size.prg   clean/doc (DFS code rev step1)

Amodigli     30/05/01 code review                  uves_mplot_title.prg    clean/doc (DFS code rev step1)

Amodigli     30/05/01 code review                  uves_mplot_chun.prg     clean/doc (DFS code rev step1)

Amodigli     30/05/01 offset corr.                 uves_efficiency.prg     taken in count of offset in eff calculation

Amodigli      29/05/01 code review                 necopt.for              dfs code review

Amodigli      28/05/01 pro key logging             uves_putframes.prg      We now chmod only on first pipe product

Amodigli      28/05/01 corr doc                    chunk_pos.ps chunk_fwhm.ps Updated to reflect new header

Amodigli      28/05/01 corr doc                    uves_cal_mkmaster_flat.tex Corrected background extraction description
Amodigli      28/05/01 corr doc                    uves_cal_response.tex      Added pipe products
Amodigli      28/05/01 corr doc                    uves_context.tex           typos
Amodigli      28/05/01 corr doc                    uves_cal_response.tex      Added figures
Amodigli      28/05/01 corr doc                    uves_obs_scired.tex      Added pipe product specification
Amodigli      28/05/01 corr doc                    chunk_pos.ps             Updated referring to CDROM
Amodigli      28/05/01 corr doc                    chunk_fwhm.ps            Updated referring to CDROM
Amodigli      25/05/01 corr doc                    mplot_bkgr.hlq           Compacted par names to make them 
                                                                            readable in one screen
Amodigli      25/05/01 corr doc                    a2.tex                   Added precisation in example RB
Amodigli      24/05/01 corr doc          uves_instrument_efficiency.tex.    Added MASTER_FLAT, MASTER_BIAS
Amodigli      24/05/01 corr doc          uves_reduce_sh.tex                 Corrected. Was wrong
Amodigli      24/05/01 corr doc          uves_context.tex                   Added label to refer to
Amodigli      24/05/01 corr doc          uves_popul_sh.tex                  Referred to cookbook
Amodigli      24/05/01 corr doc          uves_dosubmit_sh.tex               typo
Amodigli      24/05/01 corr doc          uves_obs_scired.tex                typos
Amodigli      24/05/01 bug               necopt.for                         BINX and BINY must not be 
                                                                            initialized to 0 more than once!
Amodigli      24/05/01 corr doc          uves_cal_response.tex              typo
Amodigli      24/05/01 corr doc          uves_cal_wavecal.tex               typo
Amodigli      24/05/01 corr doc          uves_cal_mkmaster_flat.tex         Added new background parameter setting description.
Amodigli      24/05/01 corr doc          uves_cal_orderpos.tex              typos
Amodigli      24/05/01 corr doc          uves_cal_predict.tex              typos
Amodigli      24/05/01 corr doc          c5.tex                            Corrected a few typos. Added reference to
                                                                           writing RB info on pipe data products
Amodigli      23/05/01 simplify          uves_init.prg,uvesinit.prg,setup  Now p_version is defined only in setup
                                         uves.ctx                          which creates $PIPE_HOME/uves/UVES_VERSION
                                                                           holding the UVES pipe version. uves_get_pversion.prg
                                                                           will get such a value.
Amodigli      23/05/01 simplify          uves_get_pversion.prg             Added uves_get_pversion.prg to get 
                                                                           on the fly the UVES pipeline version 
                                                                           number from file $PIPE_HOME/uves
Amodigli      23/05/01 code rev          necopt.for                        Check error status in call to MIDAS env                                                              
Amodigli      23/05/01 portability       uves_fmtstab.prg                  Fixed portability bug to alpha:
                                                                           without selecting out undefined entry in
                                                                           LINTAB, when we convert it in an ima to
                                                                           apply stat/ima and get the median value,
                                                                           on alpha platforms stat/ima can crash
                                                                           due to -Inf generated by copy/ti
                                                                           
Amodigli      22/05/01 code rev          necopt.for                        Initialized variables to 0 or null string
Amodigli      22/05/01 code rev          necopt.for                        Added some pseudocode
Amodigli      22/05/01 code rev          uves_mkmaster.prg                 Fixed small bug in passing frame 
                                                                           to MIDAS proc (noticed only on alpha)
Amodigli      19/05/01 code rev          necopt.for                       Further cleaning for DFS code rev step1
Amodigli      01/06/01 Update            ReleaseNotes                     Updated to beta3

1.1.1-beta4:
amodigli      2001/06/05 update          flow_flat.fig,flow_flat.eps      Added BKG Ima
amodigli      2001/06/05 clarification   uves_cal_wavecal.tex             Added how to get proper DRS setup table
                                                                          in case of not standard wav setting.
amodigli      2001/06/05  update         flow_std.fig,flow_std.eps        Added KG STD IMA
amodigli      2001/06/05  typo           uves_cal_response.tex            bmeasur=MEDIAN, some text adjustments
amodigli      2001/06/05  update         flow_science.eps, .fig           Added BKG Ima
amodigli      2001/06/05  updated        uves_obs_scired.rrd              Defaulted to MED the bkg extraction for spat
                                                                          extraction
                                                                          
amodigli      2001/06/05  support 2Dext  uves_obs_scired_rri.tex          Added P7 P8
amodigli      2001/06/05  update         uves_obs_scired_rrd.tex          Corrected Default settings                                                            amodigli      2001/06/05  correction     uves_efficiency.prg              Taken in count that with LINEAR method
                                                                          the pixel are added and so in presence
                                                                          of possible different extraction slits
                                                                          for sky1,obj,sky2 one have to rescale
                                                                          the intensity taking in count of the
                                                                          relative obj/skyN ratio.
              
amodigli      2001/06/07  correction     uves_reduce.prg                  Documented Meaning of DWIN
                                                                          Added a missing dummy product in case nsky=1
amodigli      2001/06/07  bug fix        uves_proheadinit.prg             A small bug with MIDVERS=test fixed using
                                                                          " " in passing parameter v_drsid
amodigli      2001/06/07  correction     uves_obs_scired.rrd              Default setting of INTMTD parameter to
                                                                          get/set parameters offset,slit,skywindow
                                                                          is now set to Y (automatic determination)                                                                                                                                                    
amodigli      2001/06/07  update         a2.tex                           Renamed a section, a few adjustments
amodigli      2001/06/07  update         c1.tex                           Updated date reference.
                                                                          Updated a label reference                                                             amodigli      2001/06/07  correct        c4.tex                           In case of IS the recipe name called is
                                                                          uves_obs_slicer_scired             
amodigli      2001/06/07  correct        cookbook.tex                     Used a reference drs580d1rm1x2 in place of
                                                                          drs437d0be1x1 to be have a more general
                                                                          coverage of the possible instrument setting

amodigli      2001/06/07  update         uves_cal_mkmaster_bias.tex       Added info on QC products
amodigli      2001/06/07  update         uves_cal_mkmaster_flat.tex       Typos. More clarifications on Bkg extraction
amodigli      2001/06/07  update         uves_context.tex                 Some clarifications.
                                                                          Added reference to figure
amodigli      2001/06/07  update         uves_high_level.tex              Typo on command MPLOT/BKGR fixed.
                                                                          Background extraction description more clear.
amodigli      2001/06/07  clarification  uves_obs_scired.tex              Some clarifications.
                                                                          Added distinction between AVERAGE and OPTIMAL
                                                                          pipe data products.                                                                   amodigli      2001/06/07  update         UVES_ug.tex                      Added who/when/were/why
                                                                          Updated date
                                                                          updated change record history        
                                                                          
amodigli      2001/06/07  bug fix         necopt.for                      Corrected some typo and some not proper
                                                                          initializations to fix portability problems
                                                                          to PC Linux                                                                    
amodigli      2001/06/07  update          uves_obs_scired.prg             Added reference to parameter P7
amodigli      2001/06/07  update          reduceuves.hlq                  Added info on when appropriate to use P
                                                                          Flat Fielding and a note on how to change
                                                                          offset,slit,skywindow parameters                                                      amodigli      2001/06/07  update          purify-quantify.mk              Updated locations of purify/quantify
amodigli      2001/06/07  update          ReleaseNotes                    Updated
             
beta5:
amodigli      2001/06/15  correct         mplot_chun.hlq,plot_chun.hlq    Some corrections as a parameter was missing
                                                                          or nor very clear                                                                     amodigli      2001/06/15  New QC-LOG      necopt.for                      Changed QC naming conventions to be DICB
                                                                          compliant    
amodigli      2001/06/16  New QC-LOG      uves_ccdtest                    Changing QC-LOG naming conventions
amodigli      2001/06/16  New QC-LOG      uves_efficiency.prg             Changing QC-LOG naming conventions
                                                                          Now portid is a global key defined in uvesinit.prg                                    amodigli      2001/06/16  New QC-LOG      uves_fmtstab.prg                Changing QC-Naming conventions
amodigli      2001/06/16  New QC-LOG      uves_mkmaster.prg               Changing QC-LOG naming conventions
                                                                          Added QC-LOG in addition to FITS log 
amodigli      2001/06/16  New QC-LOG      uves_mplot_chun.prg             Adapted to new QC-LOG naming conventions
amodigli      2001/06/16  New QC-LOG      uves_ordpos.prg                 Changing QC naming conventions
amodigli      2001/06/16  New QC-LOG      uves_plot_chun.prg              Adapted to new QC naming conventions
                                                                          Added check on presence of order No.       
amodigli      2001/06/16  New QC-LOG      uves_plt_dispres.prg            Changing QC key naming conventions
amodigli      2001/06/16  semplification  uvesinit.prg                    Added uves_portid as global key
                                                                          Added h_fits_nameccd="ESO.INS.GRATi.ID"
                                                                          as global key                                                                         amodigli      2001/06/20   New QC-LOG     uves_qc1_log.prg                To support new QC-LOG info. Using PAF files.
amodigli      2001/06/20   New QC-LOG     uves_plt_dispres.prg            Using QC1 LOG and PAF files                                
                                          uves_mkmaster.prg                                
                                          uves_ordpos.prg                                
                                          uves_finish.prg
                                          uves_efficiency.prg
                                          uves_ccdtest.prg
                                          uves_fmtstab.prg        
                                                                  
amodigli      2001/06/28   Correction     uves_corr_dpix.prg              Updated QC name from ESO.PRO.QC.BP.CORR
                                                                          to QC.BADPIX.CORR                                                                                                               uves_corr_hotpix.prg
                                          uves_corr_trap.prg
amodigli      2001/06/28   Correction     uves_plot_chun.prg              Eliminated prefix ESO from QC.OBJ...keys
                                          uves_mplot_chun.prg
amodigli      2001/06/29   Standardization uvesPipeSrc.shared             Removed fitsmd5.c (as now is part of MIDAS)
amodigli      2001/06/29   bux fix        necmerge.for                    AMIN alwais REAL, STARTA,STEPA,WI
                                                                          always double
                                                                          also to not have warings on alpha             
                                                                          
amodigli      2001/06/29   bug fix        necmerge2d.for                  AMIN-AMAX always REAL, STARTA, STEPA,WI
                                                                          always DOUBLE, also to not have extra
                                                                          warnings on alpha                                                                     amodigli      2001/06/29   DFO request    necopt.for                      Added BKG (sky) val,err
                                                                          Changed QC key name.
                                                                          An integer pointer was not *8
amodigli      2001/07/03   portability    necopt.for                      D1NAME,D2NAME char buffer now of dimension
                                                                          which is a multiple of 8 (portability to
                                                                          alpha). Added a few comments                                                          amodigli      2001/07/03   bug fix        makefile (pipe/src)             Fixed small portability bug:
                                                                          MEXE . (was ./)                     
amodigli      2001/07/03   typo           masteruves.hlq                  Typo fixed
amodigli      2001/07/03   documentation  reduceuves.hlq                  Clarified a bit
amodigli      2001/07/04   documentation  uves_high_level.tex             some clarifications
amodigli      2001/07/04   QC1 key names  uves_efficiency.prg             New QC1 Naming conv
amodigli      2001/07/04   QC1 key names  uves_fmtstab.prg                New QC1 nam conventions. Some additions/corrections
amodigli      2001/07/04   QC1 key names  uves_mkmaster.prg               New QC1 key naming convention
amodigli      2001/07/04   QC1 key names  uves_ordpos.prg                 New QC1 naming convention setting
amodigli      2001/07/04   bug fix        uves_plot_chun.prg              Fixed small bug in case some comp in P2
                                                                          was missing  
amodigli      2001/07/04   QC1 key names  uves_plt_dispres.prg            New QC1 parameter naming conv
amodigli      2001/07/04   QC1 key names  uves_qc1_log.prg                New version supporting new QC1 Naming conventions
amodigli      2001/07/04   standardization uves_putframes.prg             Suppressed automatic writing of FITSMD5 key,
                                                                          now done at MIDAS level                                                               amodigli      2001/07/04   standardization makefile (pipe/src)            suppressed any reference to fitsmd5.c                                                    
amodigli      2001/07/04   corrections     uves_reduce.prg                Taking in count of sky slit width to weight
                                                                          their contribute to merged sky                                  
                                                                          added also check on return status from prohead/out
                                                                          to issue an error in case datamin/max/rms/avg are strange
amodigli      2001/07/04   check data vals  uves_proclass.prg             Added check on value of datamin/max/rms/med
                                                                          to issue warning and errors in case they are
                                                                          inf or NANs. This is properly catched from
                                                                          reduce_uves.prg                                                                       

amodigli      2001/07/04   speed up          uves_resp.prg                Added a preliminary check to see if the
                                                                          standard star is present in table list.
                                                                          Before extraction. If not exit with error.
                                                                          This to save computation time                          
amodigli      2001/07/04   QC1 LOG           uves_ccdtest.prg             New naming conventions                                                                amodigli      2001/07/04   QC1 LOG           uves_proclass.prg            Better issue an error instead of a warning
                                                                          in case of bad datamin/max/avg/rms                   
amodigli      2001/07/04   Update            ReleaseNotes                 Updated this ReleaseNotes                                                             

amodigli      2001/07/10   error             necopt.for                   error-factor 2 in AMPERR was wrong   G_PROF-variance calculation
amodigli      2001/07/10   QC LOG            uves_plt_dispres.prg         Used QC.INS.GRATi.NAME to log CHIP name
                                             uves_efficiency.prg     
amodigli      2001/07/10   safety            uves_reduce.prg              to issue an error in case bad value of DATA
                                                                          return -1 for ERR4                                                

amodigli      2001/07/10   support gasgano   uves_proheadinit.prg         Latest upgrade to properly read DATAMD5
                                                                          from input raw frames and copy on
                                                                          PRO REC1 CALi DATAMD5              
                                                                          
amodigli      2001/07/12   error & flexibility uves_reduce.prg            Now RON and CONAD are PORT number dependent
                                                                          Allowed to set user defined value of OBJSET
                                                                          to properly support optimal extraction of
                                                                          multi-object sources                                                                  amodigli      2001/07/12   error               necopt.prg                 Changed ff_fct from 0.001 to 0.0001
amodigli      2001/07/12   update              ReleaseNotes               Update        
amodigli      2001/07/12   typo                ReleaseNotes               typo

version 1.2.0
amodigli      2001/07/12   update              UVES_ug.tex                Updated to 1.2.0
amodigli      2001/07/12   update              c1.tex                     Updated version number
amodigli      2001/07/12   clarify P7 in opt extr  uves_context.tex       Referred to help for P7 in REDUCE/UVES
amodigli      2001/07/12   clarify P7 in opt extr  reduceuves.hlq         Added info on how to set OBJSET in optimal
                                                                          extraction with P7=N,N,N
amodigli      2001/07/12   document error       uves_obs_scired.tex       Added info on errorbar and variance.
amodigli      2001/07/12   clarify P7 in opt extr uves_context.tex        Added reference to help in case of optimal
                                                                          extraction and P7=N,N,N
amodigli      2001/07/12   update               a1.tex                    Updated version number
amodigli      2001/07/12   clean                uves_context.tex          Updated value of alias umidas
amodigli      2001/07/12   clean                uves_qc1_log.prg          Commented extra log messages                                                          amodigli      2001/07/12   update               setup                     Updated version number                
              2001/07/12   update               ReleaseNotes              update.                                                            
amodigli      2001/07/13   info                 uves_reduce.prg           Added info that OBJSET should be less than
                                                                          SLIT/2  
amodigli      2001/07/13   update               ReleaseNotes              update                                                                                amodigli      2001/07/13   info                 uves_reduce.prg           Added info that OBJSET should be less than SLIT/2                                     amodigli      2001/07/14   error                uves_reduce.prg           Corrected the logic of issuing messages for
                                                                          user defined OBJSET value                           
amodigli      2001/07/15   code review          necopt.for                Cleaned using GNU ftncheck
amodigli      2001/07/15   portability          necopt.prg                Extended In/Out file names to 80 chars
amodigli      2001/07/15   clean                uves_fmtstab.prg          Eliminated unnecessary call to uves_getpversion.prg
                                                uves_plt_dispres.prg
                                                uves_efficiency.prg
                                                uves_ordpos.prg
                                                uves_mkmaster.prg
                                                uves_ccdtest.prg
                                                
amodigli      2001/07/15   update               uvesinit.prg              Updated UVES QC dictionary ID number

amodigli      2001/07/15   update               uves_obs_scired.tex       Updated, typos.
                                                uves_cal_mkmaster_flat.tex
                                                uves_cal_wavecal.tex
                                                uves_cal_ccdtest.tex
                                                uves_cal_orderpos.tex
                                                uves_cal_predict.tex
                                                c3.tex
                                                a2.tex
                                                c1.tex
                                                c5.tex
                                                uves_context.tex
                                                a1.tex
                                                uves_high_level.tex     
                                                                                           
amodigli     2001/07/16    update               Disclaimer.txt           Updated max length of file name for REDUCE/UVES
amodigli     2001/07/16    update               ReleaseNotes             Update                                                
amodigli     2001/07/16    QC key               uves_fmtstab.prg         Added prefix QC to DET CHIPi NAME
amodigli     2001/07/16    update               ReleaseNotes             update 

--------------------------
amodigli     2001/07/23    code rev             necrebi2d.for            Eliminated some warinngs indicated by ftncheck
                                                necmerge2d.for        
                                                necompix.for
                                                necrebi.for
                                                necexor.for
                                                necmerge.for
                                                neciden.for
                                                
amodigli     2001/07/25    bug fix              uves_proheadinit.prg      We now create a link to fullname to overcome MIDAS file length limitation
amodigli     2001/07/26    DFS doc convention   UVES_ug.tex               same as 1.2.0 but for DFS archiving
amodigli     2001/08/01    cleaner bug fix      uves_proheadinit.prg      Using set/midas dpath+=dir_path in place
                                                                          of extra link as it is a cleaner solution
                                                                          to access to data present in another directory
                                                                          This to overcome MIDAS limitation in lengh
                                                                          of files (path+file).                                           
amodigli     2001/08/01    bug fix              uves_proheadinit.prg      It is necessary to specify [0] sector to check for datamd5!
amodigli     2001/08/01    bug fix              uves.ctx                  Removed setting of PIPELINE_VERS otherwise
                                                                          overwrite MIDAS setting of PRO.DO.ID
amodigli     2001/08/01    bug fix              uves_get_pversion.prg     Added prefix uves/ in pipe version id
amodigli     2001/08/06    bug fix              uves_proheadfinish.prg    eso.pro.reci.end should be called eso.pro.reci.stop
amodigli     2001/08/07    bug fix              uvesshow.prg              Added uves/ to p_version
amodigli     2001/08/07    update               uvesinit.prg              Defined h_clock as ESO.DET.READ.CLOCK
amodigli     2001/08/07    format               uves_mkmaster.prg         Fixed a MIDAS naming convention on master
                                                                          bias in case WLEN key is negative.
                                                                          Changed format of DATAMED to f7.3
                                                                          added a replace/ima in case of RED frames
                                                                          in structX/Y calculation as asked from RHA      

amodigli    2001/08/07     format               uves_mkmaster.prg         Added writing of ESO.PRO.DATAMED in f7.3
amodigli    2001/08/07     DFO request          uves_fmtstab.prg          Used format f8.4 to log QC1 key.
                                                                          Error in DIFFXMED value fixed
                                                                          Added QC ORDMIN/ORDMAX QC WLENMIN/WLENMAX

amodigli    2001/08/07     Bug on FITS Format   uves_reduce.prg           Added again prefix ESO to QC keywords
                                                uves_qc1_log.prg   
                                                uves_corr_hotpix.prg
                                                uves_corr_dpix.prg
                                                uves_plot_chun.prg
                                                uves_corr_trap.prg
                                                uves_mplot_chun.prg
                                                necopt.for
                                                
amodigli   2001/08/07     UVES_QC dic update    uvesinit.prg              Updated Dic Id to UVES-1.13 
amodigli   2001/08/10     DFO request           uves_plt_dispres.prg      Added QC.LINE.RESIDAVG QC.LINE.RESIDRMS
amodigli   2001/08/10     clean                 uves_proheadinit.prg      Cleaner way to chop the fullname
amodigli   2001/08/10     clean                 uves_qc1_log.prg          Cleaner way to check for code
amodigli   2001/08/10     clean                 uves_efficiency.prg       used h_inspath and h_insmode in place of their
                                                                          correnspondent FITS keywords

amodigli   2001/08/12     portability           uves_get_pversion         corrected id in case of development
amodigli   2001/08/12     portability           uves_efficiency.prg       Passing p_version as string par
                                                uves_fmtstab.prg          
                                                uves_plt_dispres.prg    
                                                uves_ordpos.prg
                                                uves_mkmaster.prg
                                            
------------------------------------------------------------------------------------                                            
amodigli  2001/09/03      typo=>error           uves_extrref.prg          Typo fixed (was missing a goto)
amodigli  2001/09/08      QC-LOG                uves_plt_dispres.prg      PIPEFILE->h_pipefile
                                                                          h_nameccd now uses UVES_ICS 
amodigli  2001/09/08      QC-LOG                uves_ordpos.prg           PIPEFILE->h_pipefile
                                                                          added h_namecros,h_cwlen, h_fits_nameccd
                                                                          as asked from PSO                                                                     amodigli  2001/09/08      QC-LOG                uves_mkmaster.prg         PIPEFILE->h_pipefile
amodigli  2001/09/08      QC-LOG                uves_fmtstab.prg          PIPEFILE->h_pipefile
amodigli  2001/09/08      QC-LOG                uves_efficiency.prg       PIPEFILE->h_pipefile
                                                                          h_namecros without QC prefix. We use UVES_ICS.           
                                                                          
amodigli  2001/09/10      CDROM                 setup.sh                  setup file for CDROM release 1.2.0
amodigli  2001/09/10      CDROM                 uvesInstall.shared        added setup.sh for CDROM release
amodigli  2001/09/10      1.2.0                 Disclaimer.txt            Updated for 1.2.0 release
amodigli  2001/09/10      1.2.0                 HowToInstallForUser.txt   Updated for 1.2.0 release
amodigli  2001/09/10      1.2.0                 ReadMe                    Updated for 1.2.0 release
amodigli  2001/09/10      1.2.0                 README_uves               Updated for CDROM release 1.2.0
amodigli  2001/09/10      QC-LOG                uves_ccdtest.prg          Added some QC key as asked from PSO
amodigli  2001/09/10      update                uvesinit.prg              Updated QC.DID number
amodigli  2001/09/10      update                ReleaseNotes              Update for 1.2.0                                                                      -------------------------------------------------------------------------------------
amodigli  2001/09/17      QC-LOG                uves_ccdtest.prg          Added UITi and TLT.POS as requested from PSO.
amodigli  2001/09/17      QC-LOG                uvesinit.prg              Added h_uit and h_tilt_pos as asked from PSO
amodigli  2001/09/17      update                ReleaseNotes              updated             
