ChangeLog for rgsangles
===========================

Version 4.6.1 - 2004-02-23 (CG)
-------------

	+ to cope with rgslib 1.30.1 (answer to SPR2489) >> depends on ssclib

Version 4.6 - 2003-07-01 (CG)
------------

	+ SPR 2304 completely fixed: simplified warnings instead of messages

Version 4.5 - 2003-06-30 (CG)
------------

	+ SPR 2304 fixed: simplified warning instead of message

Version 4.4 - 2002-05-10 (JBa)
------------
        + Updated for usage of param-2.0

Version 4.3 - 2001-11-15 (JBa)
-----------
	+ adopted common naming scheme for all RGS tasks.

Version 4.2 - 2001-07-27 (CE)
-----------
	+ fixed documentation, eq. (2) (SPR 2146)
	
Version 4.1 - 2001-07-27 (CE)
-----------
	+ bumped dependency on rgssources 5.0
	
Version 4.0 - 2001-07-16 (CE)
-----------
	+ removed parameters: usebinning, *warn
	+ changed allowed values of parameter betabinning & xdispbinning
	  (this is no change in functionality, just for parameter values
	  to be more descriptive); and adapted layout file

Version 3.1 - 2001-06-12 (CE)
-----------
	+ fixed error when no attitude is provided by OAL (SPR 2110)
	+ check attitude for large excursions and catch error
	+ re-wrote the binning section
	+ disconnected input parameter: usebinning as binning is now
	  always performed
	+ disconnected input parameters *warn: use the limits of the
	  binning for the warning range, and changed message
	+ updated documentation to bring in line with recent changes
	
Version 3.0.2 - 2001-05-09 (CE)
-----------
	+ fixed another failed dependency
	+ removed residual print statement in task
	+ removed obsolete files:
	     config/testboresight.info
	     config/testboresight.lyt
	     config/testboresight.par
	     doc/rgswavelength_description.tex
	     test/delcolumn.f90
	     test/runtwice
	     test/testboresight_mod.f90
	     test/testhardcoded

Version 3.0.1 - 2001-04-25 (Jorgo Bakker)
-----------
	+ fixed failed dependency
	+ created a dummy layout for (obsolete?) testboresight.par
	+ TODO: remove obsolete files

Version 3.0 - 2001-04-24 (CE)
-----------
	+ rename parameter sourcelist to sourceset, which now takes a set,
	  instead of a table
	+ store reference attitude in primary header as well for
	  consistency with PPS products ICD
	+ fixed test harness
	+ added layout file (pasted from rgsproc)
	
Version 2.1 - 2001-04-05 (CE)
-----------
	+ fixed error in runtest: it still contained xrgsangles
	
Version 2.0 - 2001-03-23 (CE)
-----------
	+ moved xrgsangles to become rgsangles
	+ removed writing of attributes {BETA,XDSP}_{REF,WID}
	
Version 1.9 - 2001-03-16 (CE)
-------------
	+ remove type definition of SpacecraftAttitudeType from xrgsangles
	  (this is now part of use CAL)

Version 1.8 - 2001-03-06 (CE)
-------------
	+ only changes in xrgsangles:
	+ removed unit "rad" from channel columns (BETA_CHANNEL & XDSP_CHANNEL)
	+ changed reference pixel to be channel=1 (from channel=0)
	+ shifted channels such that first channel =1

Version 1.7 - 2001-02-21 (CE)
-------------
	+ added xrgsangles with the following changes (no changed to
	  rgsangles):
	+ changes to adapt to new structure of RGS processing: xrgsangles
	  now takes a merged event list on input
	+ pointing information previously stored in the FRAMES tables, is
	  now stored in EXPOSU0n tables
	+ atthistsource=atthk is removed from interface, as still is not
	  implemented anyway
	+ similarly parameter atthkset removed
	+ rgsangles now does not link the OAL any more (although
	  pointing_mod.f90 in rgslib still needs the OAL)
	
Version 1.6 - 2001-02-01 (CE)
-------------
	+ change of of keywords TCRVL to be at the center of the reference
	  pixel (was lower limit before)
	
Version 1.5 - 2001-01-31 (CE)
-------------
	+ addition of keywords TCTYP, TCUNI, TCRPX, TCRVL, TCDLT for
	  columns BETA_CHANNEL & XDSP_CHANNEL in order to replace
	  BETA_REF/WID & XDSP_REF/WID in future.
	
Version 1.4 - 2000-12-12 (GV)
-----------
	+ fix doc typo (SOC-SPR-1645).
	
Version 1.3.1 - 2000-10-11 (CE)
-------------
 - changes the units of m*lambda column from nm to Angstrom (only label was wrong)

Version 1.3 - 2000-08-17 (PV)
------------
- add SOURCEID attribute to events table for compatibility with rgsexposure-1.12
- config/testboresight.info added
	
Version 1.2 - 2000-08-11 (PV)
------------
- updated for rgssources-3.0
- selecting source position from PRIMESRC keyword in sources table.
- parameters related to source selection removed.
	
Version 1.1 - 2000-jul-04 (PV)
------------
- updated for rgslib-1.0

Version 1.0 - 2000-06-30 (PV)
------------
- selecting reference attitude moved to rgssources.
  parameters related to referenceattitude removed!
	
Version 0.52.1 - 2000-06-09 (PV)
------------
- removed FoverL in Qfactor (as phi0dsp*FoverL), because this already
  applied in offAxisAngles (SOC-SPR-1489)
- changed Makefile in test/ to comment TASKS = testboresight (as this task
  does not exist)

Version 0.52 - 2000-05-26 (PV)
------------
- changed for RGSLIB_getsourcePos() (rgslib 0.35)
- .info file added
	
Version 0.51 - 2000-05-08 (CE)
------------
- changed function call RGSLIB_getAlpha0() to RGSLIB_getAlpha() to include
  rotation of RGA; requires rgslib 0.33
- changed m*lambda to be in units of Angstrom

Version 0.50 - 2000-04-11 (PV)
------------
- based on Version 0.48	(undo modifications by CE)
- correction of reference attitude using new rgslib function instrumentPointing()
 requires rgslib-0.31
	
Version 0.49 - 2000-04-09 (CE)
------------
- if referenceattitude=fist, a bore-sight correction needs to be done too
- the multiplication of the bore-sight correction matrix was wrong; this
  affects the calculation of the reference attitude, if not user.

Version 0.48 - 2000-04-05 (PV)
------------
- parameter referenceframe renamed to referenceattitude
- nbins changed in TLMAX determination

Version 0.47 - 2000-03-30 (PV)
------------
- added TLMIN TLMAX to BETA_CHANNEL and XDSP_CHANNEL columns

Version 0.46 - 2000-03-14 (PV)
------------
- keyword TELAPSE added to EVENTS table

Version 0.45 - 2000-03-08 (PV)
------------
- fixed bug OAL_exposureInfo not properly initialised before used in
  time argumnet to RGSLIB_getBoresight(time)
	
Version 0.44 - 2000-03-02 (PV)
------------
- updated for rgslib-0.25
- updated algorithms related to RGS boresight
- output NOT YET VALIDATED	

Version 0.43 - 2000-02-22 (PV)
------------
- parameter names changed. (will break rgsproc!)
- drift correction in cross dispersion changed.	

Version 0.42 - 2000-02-01 (PV)
------------
- moveAttributes() replaced by copyAttributes() to allow re-run on own output

Version 0.41 - 1999-12-22 (PV)
------------
- binning default set to produce exposuremap about 40x20 pixels. (rgsangles.par)
- added extra rangecheck for input columns beta xdsp
	
Version 0.40 - 1999-12-21 (PV)
------------
- uses RGSlib 0.18 to read sourcepos from sources table
- default set to read first entry from rgssources.ds:SOURCES
- propagate DATATYPE keyword from PIXELS to EVENTS table
		
Version 0.39.1 - 1999-12-18 (MBe)
--------------
- removed weird OAL initialisation

Version 0.39 - 1999-11-25 (PV)
------------
- uses moveAttributes from saslib 1.49
- set default to using fixed number of bins for beta_channel and xdsp_channel
- testfile updated
- write ASPFACT1 keyword also for empty event tables
	
Version 0.38 - 1999-11-09 (PV)
------------
- parameter name 'dataset' changed into 'set'
- Some quick fixes to make rgsexposure and evlistcomb happy:
	DATE-OBS DATE-END CCDOCB from pixel to events table
	TELESCOP INSTRUME OBS_ID EXP_ID to primary header
- column names *_CHA changed to *_CHANNEL for BETA and XDSP
	
Version 0.37 - 1999-11-02 (PV)
------------
- added beta range check
- improved processing of empty events table. 
	(still create ASPCDSP ASPCXDSP columns in FRAMES table)
- allow binning specification in alternative form. min max nbins 	
- TLMIN/MAX changed to TDMIN/MAX
- added asInt16() function to produce fatal error on int16 overflow
	
Version 0.36 - 1999-10-27 (PV)
------------
- updated for rgslib 0.11
	
Version 0.35 - 1999-10-25 (PV)
------------
- binning of beta and xdsp added to EVENTS table.
- TLMIN and TLMAX keywords for BETA_CHA and XDSP_CHA added
- added delta angles on grating columns	(ASPCDSP ASPCXDSP) to FRAMES table.
- renamed keyword Qfactor to ASPFACT1 in EVENTS header.
	
Version 0.34 - 1999-10-20 (PV)
------------
- added support for reading aattitude info frof atthkgen output.
- added support for SOURCES table
- default referenceframe is "mean" from atthkdat header.
- adds sourceTableId to EVENTS header	
- adds Qfactor to EVENTS header	
	
Version 0.33 - 1999-09-24 (GV)
------------
- fix typo in DEPEND
- (test/input.ds) add ODFNAME attribute

Version 0.32 (PV 22sep99)
------------
- updated for rgslib 0.9
- new parameters for referenceframe and source position
	
Version 0.31 (PV 10sep99)
------------
- cleaned up for rgslib 0.8. 
- obsolete rgswavelength stuff removed.
- state of the art parameter names
	
Version 0.30 (UL 18aug99)
------------
- brought rgswavelength (obsolete?) in line with oal-3.28

Version 0.29 (PV 11aug99)
-----------
- task renamed from rgswavelength to rgsangles.
- src/pointing_mod moved into rgslib package.
- depends on rgslib 0.4
		
Version 0.28 (PV 10aug99)
-----------
- cleaned up, 
- pointing related stuff moved to pointing_mod.f90 (to be moved into rgslib)
- task called rgsangles
- prototype for rgsangles package.
	
Version 0.27 (PV 05aug99)
-----------
- debug version which works with rgsevents 1.4 (CHIPX)

Version 0.26 (PV 03aug99)
-----------
- debug version which works with rgsevents 1.3
- lots of changes.
	
Version 0.25 (PV 16jun99)
-----------
- m*lambda column made optional
- target position from ODF proposal info	

Version 0.24 (PV 11jun99)
-----------
- updated for output of rgsx 0.4

Version 0.23 (PV 07jun99)
-----------
- depend file updated for CAL3.0

Version 0.22 (PV 21apr99)
-----------
- updated for cal2.18 (CAL_setState(set))
- added spacecraft pointing columns
	
Version 0.21 (PV 14apr99)
-----------
- updated for cal2.15 (dataModeId)

Version 0.20 (PV 01apr99)
-----------
- in line with saslib 1.30

Version 0.19 (PV 17mar99)
-----------
- works with time stamps and ODF call to get pointing.
- instrument selection from header keyword
	
Version 0.18 (PV 15mar99)
-----------
- typo in test/Makefile

Version 0.17 (PV 15mar99)
-----------
- hardcoded test commented out until we have stable ccf with lincoord positions.

Version 0.16 (PV 12mar99)
-----------
- uses eventpositions in detector coordinates. Cal v2.8

Version 0.15 (PV 12mar99)
-----------
- removed ofddir parameter from config file
- default setting do not bypass OAL attitude call

Version 0.14 (PV 01mar99)
-----------
- use saslib 1.16 (use saslibdal)

Version 0.13 (PV 26feb99)
-----------
- use odfNames for column names
- use addcolumnOverwrite moved into saslib

Version 0.12 (PV 21feb99)
-----------
- fixed for processing empty eventlists 

Version 0.11 (PV 15feb99)
-----------
- removed cal/oal init calls 

Version 0.10 (PV 08feb99)
-----------
- inline with change in AOL 2.11 spacecraftAtttitudeType.
	
Version 0.9 (PV 26jan99)
-----------
- setmode SPECTROSCOPY in OAL_setState(). (fixes problem reading OAL file)
	
Version 0.8 (PV 15jan99)
-----------
- uses transform_mod (saslib) 4x4 matrices to do transformations.
- various changes resulting from detXYZ now containing event positions in
  Spacecraft coordinates. (CAL_rawXY2mm). Will be changed to
  detectorcoordinates when new CAL call becomes availeble.
- testhardcoded (checkoutput) modified.
	
Version 0.7 (PV 08jan99)
-----------
- parameter "odfDir" changed to "odfdir".
- use 'saslocate' to specify path to ODF directory. 
- new temporary bool parameter dummyOALAttitude because 
  OAL_getAttitude call isn't working for RGS
	
Version 0.6 (PV 23dec98)
-----------
- First prototype of COMPLETELY NEW VERSION. Using CAL and OAL access
- depend on CAL OAL and slatec (for OAL)
- includes attitude correction.	

- parameters "ra" "dec" and "odfDir" added	
- parameter "inFile" renamed to "set".
- boolean parameter "crateNewSet" added.
- parameter "newSet" added.
	
Version 0.5 (PV 10dec98)
-----------
- removed node loop. Need table 'RGS_EVENTS' 
	

Version 0.4 (19nov98 (PV)
-----------

- contains task description ready for aproval by SSC

Version 0.3
-----------

- testing pgp upload script.

Version 0.2
-----------

- Task description not approved. Package sent to the SSC for I&T.
		
Version 0.1
-----------

- first implementation
	
- Directory structure created by pkgmaker.

