# greimel = Robert Greimel, greimel@ing.iac.es
#
# Names in () are the people who reported/requested the bug/feature
######################################################################
06.Sep.2001 greimel
- idispframe.cl
  * now calls ifileinfo to get exposure time.
  * the change to isetwcs listed below meant that icheckfile output
    parameters no longer can be trusted across iframediff calls and now need
    to be stored to local variables if they need to be used afterwards again.
    This was never save anyway ...

- isetwcs.cl
  * UDAS writes the images 180 deg rotated from ImpB. isetwcs now does take
    this into account for writing the initial WCS

- idedither.cl
  * UDAS writes the images 180 deg rotated from ImpB. idedither now does take
    this into account for calculating the image shifts.

- ifileinfo.cl
  * added UltraDAS header keywords for number of MNDR and coadd.

01.Sep.2001 greimel
- ilistdark.cl
  * made it work with UltraDAS images (N. Walton)
- idedither.cl
  * remove bug in calculation of the common image area. The sign for RA and
    Dec were swapped. For "normal" dithering around the centre this problem
    did not show, but for quadrant dither it did.

08.Jul.2001 greimel
- idedither.cl
  * clear the list parameters at the end of the task
  * remove BPM header keyword from combined image
  * don't display messages about the input sky image in "wcs" match mode.

- ifinddark.cl
  * only use one unique temporary (base) file name for the task
  * if output table already exists use it instead of re-calculating the
    statistics.

- ilistdark.cl
  * now uses "dark" command instead of "run"

- icombine.cl
  * only use one unique temporary (base) file name for the task
    (well, except temporary images for post-pre processing)
  * do not try to remove non existing temporary files. This produce
    an error if all input images were already post-pre subtracted.

- doc/usage.hlp
  * some updates (work in progress)

07.Jul.2001 greimel
- ingrid_ql.cl
  * added Almudena Zurita to contact list

- ifileinfo.cl
  * corrected bug in reporting the number of MNDR as COADDs and vice versa
    (Almudena Zurita)

- iframediff.cl
  * only use one unique temporary (base) file name for the task
  * input file lists are now possible. The number of output files has to
    match the number of input files.

04.Jul.2001 greimel
- isetwcs.par
  * changed the default scale to 0.238 arcsec/pixel which is the plate scale
    with the new foreoptics (was 0.242 arcsec/pixel)

- irefinewcs.par
  * changed the default scale to 0.238 arcsec/pixel which is the plate scale
    with the new foreoptics (was 0.242 arcsec/pixel)

- ingrid_ql.par
  * changed the default scale to 0.238 arcsec/pixel which is the plate scale
    with the new foreoptics (was 0.242 arcsec/pixel)

- istarfocus.par
  * changed default focus header keyword to TELFOCUS as the internal INGRID 
    focus mechanism is currently not functional.

09.Apr.2001 greimel
- istarfocus.cl
  * added error message if sky image for subtraction cannot be found

04.Apr.2001 greimel
- imarkstar.cl
  * removed bug in range determination for e,s and . keys

03.Apr.2001 greimel
- ilinearity.cl
  * store tables as fits tables
- itiming.cl
  * removed bug in common range detection

02.Apr.2001 greimel
- ilinearity.cl
  * continued to improve task
  * parameters now passed on to ifindron and ifinddark (Almudena Zurita)
  * removed bug (really an IRAF bug in handling boolean expressions) in
    detection of correct dark frame (Almudena Zurita)
  * added timing correction value
- itiming.cl
  * continued to improve task
- ifinddark.cl
  * don't plot final results if plot=no

01.Apr.2001 greimel
- itabplot.cl
  * added hidden task as a helper function to ilinearity
- ilinearity.cl
  * continued to improve task
- itiming.cl
  * added task to find timing error from two linearity tests at different
    flux levels

30.Mar.2001 greimel
- isectionstat.cl
  * another internal task that makes calulating a statistical quantity
    in a grid easier.
- doc/istarfocus.hlp
  * updated with information about focus parameter
- doc/usage.hlp
  * updated focus script usage description

29.Mar.2001 greimel
- ilinearity.cl
  * expanded considerably.
- ifinddark.cl
  * expanded considerably
  * calculates values in a grid like ifindron to get better statistics
  * allows sections as input
- isubtract.cl
  * added verbose and info parameters which are passed on to iframediff

25.Mar.2001 greimel
- ifindron.cl
  * removed bug in y axis section calculation

12.Mar.2001 greimel
- doc/idedither.hlp
  * updated to reflect recent changes in the task parameters. Also updated
    usage information
- ifindlinearity.cl
  * renamed ifindlin to ifindlinearity to resolve uparm name conflict
    with ifindron

11.Mar.2001 greimel
- idedither.cl
  * added parameters savesky, outsky and insky
  * added possibility to subtract a sky image from the displayed images (Mike
    Balogh, Keith Thompson)
  * added possibility to save median sky image
  * increased coarse centering box to 17 pixel (from 11) (Mike Balogh)
    - this is a bit worrying, as it means that the pointing within a
      dither or of subsequent dither patterns can be off by more than
      2 arcsec ...
  * fixed bug with XAPOFF - we need to take cos delta into account there.
  * XAPNOM is now also taken into account
  * added bigbox parameter from imcentroid to be able to counteract
    pointing problems ...
  * added "relative" position error correction code
  * added check if input files exist (Mike Balogh)
  * now recognices "q" key to bail out in pick1 mode (Mike Balogh)

06.Mar.2001 greimel
- ibpmgenerate.cl:
  * replaced call to del with full name delete to avoid possible calling
    problems from IRAF.
  * same for imdel -> imdelete
- icombine.cl:
  * del -> delete, imdel -> imdelete
- idispframe.cl:
  * del -> delete, imdel -> imdelete
- idomeflat.cl:
  * del -> delete, imdel -> imdelete
- ifinddark.cl:
  * del -> delete, imdel -> imdelete
- iframediff.cl:
  * del -> delete, imdel -> imdelete
- ilistdark.cl:
  * del -> delete, imdel -> imdelete
- iskyflat.cl:
  * del -> delete, imdel -> imdelete
- istarfocus.cl:
  * del -> delete, imdel -> imdelete
- istatistics.cl:
  * del -> delete, imdel -> imdelete
- isubtract.cl:
  * del -> delete, imdel -> imdelete
- ifindlin.cl:
  * added script by Peter Moore
- ifindgain.cl:
  * added script by Peter Moore
- ifindphot.cl:
  * added script by Peter Moore

22.Dec.2000 greimel
- ifindron.cl: added printing of median of the two input images in the
               results section.

17.Dec.2000 greimel
- istatistics.cl: added possibility to calculate the post-pre statistics for
  files that have not yet been subtracted. This is done by the user
  setting a new parameter "sections" to one or more of "pre","post" and
  "data". (requested by Simon Rees)
  Also added possibility to handle image sections in istatistics.
- istatistics.par: added new parameter sections
- icheckfile.cl: modified to ignore image sections in the file name
  specification. This is necessary to allow other tasks to take image sections
  as arguments.

11.Dec.2000 greimel
- idedither.par: corrected text description for scale

07.Dec.2000 greimel
- icheckfile: removed bug that prevented it to work on UDAS images introduced
  with the last change. Basically I forgot to add "[0]" to the file name.
  (reported by Simon Rees)

06.Nov.2000 greimel
- icheckfile: added naxis check to DAS determination in case there are no
  headers around. This makes ingrid_ql idispframe now work on glance files
  (reported by Thomas Augusteijn)

21.Sep.2000 greimel
- iframediff: now calculates the difference of the exposure times in the pre
  and post read image headers for UDAS images
- ifileinfo: now calculates the difference of the exposure times in the pre
  and post read image headers for UDAS images

23.Aug.2000 greimel
- ifindron: removed abort on WARNING message regarding MNDRs. Added check
  for coadds < 1.

21.Aug.2000 greimel
- fixed ifileinfo for UDAS (missing extension)

20.Aug.2000 greimel
- (continuation of) effort to bring documentation up to date

19.Aug.2000 greimel
- (continuation of) effort to bring documentation up to date
- idedither: added scaling parameter, which is passed on to imcombine.
- ingrid_ql.par: added bad pixel mask (BPM) package parameter.
- iframediff: picks up BPM from package parameter and adds it to the resulting
  image. Now also adds headers if dark subtraction (IQL-DARK), flat-fielding
  (IQL-FLAT) or sky subtraction (IQL-SKY) is done. Value of the headers is
  the name of the image used for the action.
- renamed ifinddark to ilistdark
- new task ifindgain
- new task ifinddark
- idispframe: made flatfield and flat parameters actually do something. WCS is
  now calculated for the resulting image. sky image is now deleted if it
  was created.

17.Aug.2000 greimel
- (continuation of) effort to bring documentation up to date
- icombine: variable cleanup
- idedither: variable cleanup. Now makes use of imgaccess to check for
  existance of output image.
- ifileinfo: added finding images size.
- ibpmgenerate: changed ngood to 2 in ccdmask call.

16.Aug.2000 greimel
- ifileinfo: variable cleanup
- isubtract: changed to make it work with UDAS images. Instead of minimizing
  work and doing a post-pre only once in case that both input images are raw
  images the task now post-pre subtracts both input images before feeding
  them to imarith. This also will make it work with windows. (Johan Knapen)
- ingrid_ql.cl: changed contact information to Johan Knapen.
- INSTALL: updated information about external packages needed.
- (start of) effort to bring documentation up to date
- ibpmgenerate: minor code and variable clean up. Also added info switch.
- ingrid_ql.par: added tmpdir as package variable

12.Aug.2000 greimel
- modified idedither to use imarkstar
- added help page for imarkstar

11.Aug.2000 greimel
- new (hidden) task imarkstar.

07.Aug.2000 greimel
- new (hidden) task ifileinfo. Determines exposure time, number of coadds and
  number of MNDRs for the different file formats.
- added help page for ifileinfo
- more work on the internals help page
- added exposure time, coadd and MNDR checks to ifindron

06.Aug.2000 greimel
- new (hidden) task imgaccess. Determines if an image exists.
- added help page for imgaccess
- more work on the internals help page

05.Aug.2000 greimel
- added subdark and darkimg parameters to icombine.

31.Jul.2000 greimel
- ifindron
  removed a bug due to which only elements in the diagonal were calculated.
  If centre not equal mean then the median is now used in the final statistics.
  Added outtab parameter. If specified the final table is saved under this
  output name.
  Added plot parameter. If set to true the resulting distribution is printed.
  verbose now actually does what it says.
- updated documentation (internals)

30.Jul.2000 greimel
- icheckfile now also returns the number of windows in the frame
- wrote help page for icheckfile
- ingrid_ql.hd still contained a reference to icheckdiff. This was changed
  to icheckfile
- created script iwininfo. This script extracts the window information from
  the image header.
- wrote help page for iwininfo
- rebuilt help database
- iframediff can now handle windowing for UltraDAS

26.Jul.2000 greimel
- added missing "/" to the site wide install instructions

25.Jul.2000 greimel
- updated icheckfile to work with UltraDAS test file and implemented format
  detection algorithm
- icheckfile now also returns the number of extensions available in the image
- updated installation instructions to include note about tables package
- finished UltraDAS change for iframediff
- iframediff now adds the header IQL-PP="T" to indicate that post-pre
  subtraction has taken place. It also now uses the info switch to only print
  messages when asked for it
- added scale to global package parameters
- updated istatistics to use icheckfile and work with UltraDAS
- updated idispframe to use icheckfile and work with UltraDAS
- updated ibpmgenerate to use icheckfile
- updated istarfocus to use icheckfile
- updated iskyflat to use icheckfile
- updated irefinewcs to use icheckfile
- updated icombine to use icheckfile
- updated idedither to use icheckfile and the package scale variable.
  Also limited calculated automatic x,y shifts to 3 decimal places as the
  large number of decimal places caused a segmentation fault in imcentroid
  under Linux. Removed / from generation of temporary file names using
  tmpdir as the directory as this cause problems under Linux IRAF
- updated idomeflat to use icheckfile

24.Jul.2000 greimel
- changed isubtract to use icheckdiff
- changed ifindron to use isubtract
- started ifindron help page

19.Jul.2000 greimel
- added ifindron, a task to find the readout noise of the detector
- changed INGRID contact from Chris Packham to Thomas Augusteijn

13.Jul.2000 greimel
- renamed icheckdiff to icheckfile
- removed small bug in iskyflat. subdark was not passed on to the
  iframediff call.

05.Jun.2000 greimel
- started preparation for IR-UltraDAS and NAOMI. The data is stored in image
  extensions rather than a data cube with the new DAS implementation
- added icheckdiff task. This task checks if an image has been post-pre
  subtracted based on the header information and works for implementation B
  and Ultra-DAS
- changed iframediff to use icheckdiff

23.May.2000 greimel
- added removal of temporary files that might have been left around by a
  previous run at the beginning of idedither

13.Apr.2000 greimel
- more work on documentation. Added usage.hlp

12.Apr.2000 greimel
- added ifinddark task

11.Apr.2000 greimel
- added all imcombine parameters to icombine
- corrected comments in all .par files
- set all tmpdir variables to "tmp$" in .par files
- updated INSTALL instructions to resemble other IRAF packages
- removed never used idith2im.cl (was superseded by idedither, isetwcs, ...)

10.Apr.2000 greimel
- added some more documentation for the tasks
- removed flpar from parameter lists in called routines as it caused troubles
  as whtguest from whtdr (also reported by Keith Thompson)
- added checks for sky saturation exposure time calculation and limited output
  to two decimal places
- changed size of pixel in idedither from 18 mu-m to the correct value of
  18.5 mu-m (Keith Thompson)
- changed direction for RA (xmag to - xmag). This should also cure some 
  (or all ?) of the idedither problems with method "wcs". (Keith Thompson)
- added task irefinewcs (Keith Thompson)

24.Mar.2000 greimel
- added pick1 option to idedither

23.Mar.2000 greimel
- removed typo in idedither and istarfocus
- added check if output images exists to idedither

22.Mar.2000 greimel
- added exposure time limit due to sky saturation to idispframe output
- fixed isubtract call to iframediff
- dimensionality of images to be subtracted can now differ
- changed >& to >>& in iframediff.cl

20.Mar.2000 greimel
- new routine istatistics
- changed iframedisp to display statistics after display

19.Mar.2000 greimel
- (small) changes during commissioning

18.Mar.2000 greimel
- rewrite of iframediff to include flat fielding and sky subtraction
- added verbose keyword to isetwcs
- changed default value of platescale from PLATESCA to 0.242 as the
  current PLATESCA value in the headers is wrong
- changed iskyflat to use the mode for scaling
- created icombine

17.Mar.2000 greimel
- (small) changes during commissioning

16.Mar.2000 greimel
- istarfocus now does no longer need reduced images as input
- plus (small) changes during commissioning

15.Mar.2000 greimel
- changed idispframe to delete temporary image at beginning of script
  and not at the end in order to allow imexam to be run on the displayed
  image.
- added settings for using fits files as the image type to the startup script

11.Mar.2000 greimel
- removed argument names for positional parameters in iframediff call
  as this caused a problem due to an IRAF bug

29.Feb.2000 greimel
- added skeleton documentation and moved to general IRAF directory

28.Feb.2000 greimel
- added platescale parameter as value or keyword to isetwcs

25.Feb.2000 greimel
- added istarfocus
- changed iskyflat to use imcombine

24.Feb.2000 greimel
- renamed tasks to start with i
- added iskyflat
- added idomeflat
- added isubtract

05.Nov.1999 greimel
- resolved setwcs problem coming from imarith in framediff
- started work on dith2im.cl
- added axis check to framediff.cl

04.Nov.1999 greimel
- created setwcs.cl
- changed dispframe.cl
  uses framediff.cl to generate the temporary file that is being displayed
- created framediff.cl

03.Nov.1999 greimel
- created dispframe.cl
- created ingrid_ql package
