HISTORY moveProducts

VERSION	DATE		DESCRIPTION
1.0	2004-09-14	created from scratch
1.1	2004-09-20	removes entries in JOB_FILE_NAME for $DATE
1.1.1	2004-09-28	bug removed for RBS (2004-09-28)
1.1.2	2004-10-19	bug removed with PLUGIN (2004-10-19); the PLUGIN part is not backwards compatible!
1.2	2004-11-08	modified call of renameProducts 
1.2.1	2004-12-21	calls updateAB even if no AB exists
1.2.2	2005-02-17	exits gently if no AB exists
1.3	2005-03-10	PAF/INI files supported, needs small extension to config file
1.3.1	2005-03-15	bug removed with PAF/INI
1.3.2	2005-03-17	bug removed with large number of ABs
1.4	2005-03-21	ingestProducts included; doesn't require 'fits' as part of ps and gif names
1.4.1	2005-04-29	more stable grep in case of RAW_TYPE string contained in PRO_CATG
1.4.2	2005-05-13	suspend support for RBs 
1.4.3	2005-05-18	more stable solution to delete PRO.CATGs
1.4.4	2005-05-30	stable solution in case of pre-existing products
1.4.5	2005-06-09	export DATE to the special plugin 
1.4.6	2005-11-16	create $DFO_LOG_DIR/$DATE in any case
1.4.7	2005-12-15	move AB logs together with ABs 
1.5	2006-01-23	enable off-line product ingestion with jobs file
1.5.1	2006-02-02	bug fixed with interactive mode
1.6	2006-03-10	compatible with createAB -v2.x
1.6.1	2006-03-13	bug fixed with VCAL *hdr files
1.6.2	2006-05-18	dfosLog suspended
1.6.3	2006-09-14	little modification with rn_files
1.6.4	2006-09-19	modified handling of fitsort (qfits)
1.7	2006-10-26	supports createNightLog
1.7.1	2007-03-23	png files supported, paf/ini turned off, PROD_STRING hard-coded
1.7.2	2007-07-11	mode=SCIENCE: no back-renaming (new products are just added)
1.7.3	2007-09-12	better handling (for loops) for LOTS of files (JP)
1.8	2008-03-05	update inks in scoring files
1.8.1	2008-06-18	improved error handling in line 296
1.9	2008-08-15	creates LOGS and PLTS ancillary files
1.9.1	2008-10-06	jpg files moved
1.9.2	2008-10-13 	always produce ingestion entry in JOBS_INGEST
1.10	2008-12-02	mv logs and plts to QC web server; option to ingest in real time suspended
1.10.1	2009-01-15	bug fixed with fits file transfer to safweb1
1.10.2	2009-01-21	bug fixed with calChecker page update to w4
1.10.3	2009-02-16	improved handling of $DFS_PRODUCT/$RT
1.10.4	2009-04-06	prepared for merge2Fits v1.1
1.10.5	2009-05-20	adapted to new getStatusAB v1.10 (line 765ff); check $DFO_PLT_DIR to exist before transfer to $DFO_WEB_SERVER (line 745) [IPe]
1.10.6	2009-06-15	bug fixed in line 738 (DFO_FILE_NAME)
1.10.7	2009-08-06	bug fixed with scp of score html files
1.10.8	2010-01-11	improved handling of large number of files
1.10.9	2010-03-02	further improvements for large number of files; PS_YN suspended; qcweb replaces safweb1
1.11	2010-04-13	change workflow for ingestProducts (now: after ANC file creation)
1.11.1	2010-04-23	empty directory check improved (line 629) [JPr]
1.11.2	2010-12-06	transfer of status__setup.html suspended
1.11.3	2011-04-21	DFO_EDITOR replaces NIGHT_EDITOR, plus stabilized grep for $T
1.12	2011-05-31	supports COVERSHEET; view replaces DFO_EDITOR; config key CDB_INGEST obsolete
1.12.1	2011-08-29	bug fixed with scp of SCIENCE content of $DFO_LOG_DIR and with coversheets
1.13	2011-09-19	writes additional call for harvestAB into JOBS_INGEST
1.13.1	2011-11-30	removed: message about updateDP
1.13.2	2012-03-04	improved logging
1.13.3	2012-07-11	bug fix for case 'all products rejected but plots exist' [BWo]
1.13.4	2012-08-23	mode=SCIENCE: no plots searched and scp'ed 
1.13.5	2012-11-22	createNightLog removed
1.14	2013-01-09	JOB_FILE_NAME and ING_FILE_NAME obsolete in config.moveProducts; moves AB tab files to $DFO_LOG_DIR 
2.0	2014-05-11	ANC files dropped
2.1	2014-08-21	supporting DFOS and PHOENIX
2.2	2014-09-15	dropped: VCAL_REMOVE in config.moveProducts
2.2.1	2014-09-22	bug fix in line 560ff
2.2.2	2015-04-20	bug fix in line 749ff
2.2.3	2015-06-22	call of harvestAB removed
2.2.4	2015-07-13	dropped: section 6.3 (code related to AB monitor)
2.2.5	2015-10-05	for PHOENIX: safety switch to prevent calling this tool on the command line
2.2.6	2019-01-03	suppress qcdate error for DEEP_MODE
2.2.7	2019-05-22	line 299, fix for RAW_TYPE=SCIENCE [BWo]