ChangeLog for mosback
===============================

Version 0.22.2 - 2023-04-04 (BP)
------------------------------
        + Doc improvements.

Version 0.22.1 - 2023-03-10 (BP)
------------------------------
        + Initialized uninitialized arrays causing NaN conditions in calculations on Linux machines.
	+ Removed superfluous print statements.

Version 0.22 - 2023-01-13 (BP)
------------------------------
        + Removed parameter withimage (confused downstream esas tasks). Makes image by default.
	+ Cleaned up comments and docs.

Version 0.21 - 2022-10-19 (BP)
------------------------------
        + Fixed call to check_orbit (was erroneously masking CCD3/CCD6 for MOS2).

Version 0.20 - 2022-09-21 (BP)
------------------------------
        + Added call to check_orbit.
	+ Added diagnostic print statements.

Version 0.19 - 2022-08-18 (BP)
------------------------------
        + Implemented new method for obtaining path to QPB calibration file.

Version 0.18 - 2022-06-28 (BP)
----------------------
	+ Moved variable initialization causing occasional blow up of exponents.
	+ Removed writes to fort.nn.
	+ Upgraded slatec calls to their double precision counterparts.
	+ Lined up code with new augment_mos in goflib.

Version 0.17 - 2022-06-22 (BP)
----------------------
	+ Switched to double precision versions of SLATEC routines used.
	+ Cleaned up diagnostic messages.
	+ More doc updates.
	+ Fixed uninitialized array error causing bridgefit plot problems.

Version 0.16 - 2022-06-21 (BP)
----------------------
        + Completely eliminated NR subroutines.
	+ Replaced NR with slatec routines.
	+ Bug fixes.
	+ Doc update.
	+ DEPEND file update.

Version 0.15 - 2022-05-17 (BP)
----------------------
        + Aligned check_clobber call with new gofio call.
        + Fixed block causing SegFault when withimg=F.

Version 0.14 - 2022-04-08 (BP)
------------------------------
	+ Fixed incorrect attribute change (was PRIMARY now table SPECTRUM).
	+ Cleaned up docs.

Version 0.13 - 2022-03-23 (BP)
------------------------------
        + Replaced hardcoded arrays with allocatable arrays.
	+ Reads emos*_qpb.fits file from testprods/esas_data not "caldb" files.
	+ Replaced "prefix" with inspecfile.
	+ Other than the input spectrum, user can define all other in/out files or they will be derived by default.
	+ Seven ccdN parameters now a single boolean array, "ccds".
	+ Diagnostic images and message outputs controled with SAS_VERBOSITY and withplotfiles not "diag" parameter.
	+ Removed chi squared flag "chisqflg" for converting between count rate and count spectrum (may be readded).
	+ Removed "clobber" param, replaced with SAS_CLOBBER.
	+ Several input and output filename changes (see doc).

Version 0.12.2 - 2021-11-23 (BP)
------------------------------
        + Added copying of array attributes (was only doing set attributes and rotdet2sky needs them).
	+ Fixed titles and some output messages.

Version 0.12.1 - 2021-10-12 (BP)
------------------------------
        + Fixed QDP outputs.
	+ Corrected matrix calculation.
	+ Fixed non-closing logical unit number.

Version 0.12 - 2021-09-19 (BP)
------------------------------
	+ Added call to testprods to retrieve QPB cal files.
	+ Improved file opens and reads.
	+ Fixed call to read_2Darray in goflib.
	+ Updated filenamesfor upstream tasks.
	+ Updated array allocations.
	+ Added call to release to close dataset.
	+ Updated task dependencies.

Version 0.11.2 - 2021-08-11 (BP)
------------------------------
	+ Fixed sub calls to goflib.

Version 0.11.1 - 2021-05-10 (BP)
------------------------------
	+ Fixed doc build error.

Version 0.11 - 2021-04-08 (BP)
------------------------------
	+ Renamed to mosback from mos_back.
	+ Parameters changed (see docs).
	+ Removed fitsio (all DAL/CAL/OAL usage).
	+ Completed, f95, CCF-supported version.
	+ Modularized and removed from ESAS to standalone package.
	+ All below changes are old ESAS changes relevant to mos_back.

Version 0.10.5 - 2018-06-12 (RDS)
------------------------------
        + Added clobber parameter definition in par file.

Version 0.10.4 - 2018-06-05 (BP)
------------------------------
	+ Resubmit for pgp signature fail on upload. Code unchanged.

Version 0.10.2 - 2018-05-25 (BP)
------------------------------
        + Added chisqflg back (slightly alters output	fits files).
        + Fixed nexp vs nexpp variable name bug.
        + New min/max energy limits.

Version 0.10 - 2018-02-13 (EO)
------------------------------
	+ This is a new major version of this package including a new GNU
	Public License Text disclaimer required to distribute the SAS source
	code to the Astronomical Community under the terms of the GNU Public
	License. The text as it is shown below is the same that has been 
	included in all SAS source code files.

	ESA (C) 2000-2018
 
	This file is part of ESA's XMM-Newton Scientific Analysis System
	(SAS).

	SAS is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	SAS is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with SAS.  If not, see <http://www.gnu.org/licenses/>.
	---------------------------------------------------------------------

Version 0.9.40 - 2017-02-24 (BP)
------------------------
        + Minor bug fixes.

Version 0.9.39 - 2016-10-18 (BP)
------------------------
        + Cleaned up config files.
        + Adjusted hardcoded array to accommodate new QPB files (subsn).

Version 0.9.37 - 2016-10-17 (BP)
------------------------
        + Removed parameter chisqfl.

Version 0.9.35 - 2016-07-21 (BP)
------------------------
	+ Proof of concept "old esas" still compiles in gfortran.
	+ Cleaned up failing laTex.
	+ removed f90_unix_proc from several tasks.
	+ Cleaned up antique F77 code.

Version 0.9.28 - 2013-10-31 (SS)
------------------------
	+ Documentation updates.

Version 0.9.26 - 2013-08-30 (SS)
------------------------
	+ Bug fixes and implimentation of MOS1 CCD#4 treatment
		after the loss of CCD#3.

Version 0.9.16 - 2012-03-19 (SS)
------------------------
	+ Convert MOS processing to use 5 eV channels.
	+ Modified call to read_rmf.

Version 0.9.13 - 2011-03-06 (SS)
------------------------
	+ Minor tweaks for compatability with new QPB files.
        + Requires download of CalDB files.

Version 0.9.12 - 2011-02-10 (SS)
------------------------
	+ Minor tweaks to a few tasks - cleaning code
	+ Added test for the revolution and will exclude MOS1
	CCD#6 from processing if the time observation occurred
	after the micrometeorite hit.

Version 0.9.7 - 2010-06-01 (BP)
------------------------
	+ Fixed Mac OSX bug fix mosback (by SS) 

Version 0.9.3 - 2009-06-09 (CG)
------------------------
	+ All single routines' docs added.

Version 0.9.1 - 2009-05-18 (SS&BP)
------------------------
	+ Added to docs. Fixed Solaris build problem. 

Version 0.9 - 2009-05-07 (SS&BP)
------------------------
	+ Updates to calibration files (7 added, 4 removed).
	+ Memory modifications to subs.

Version 0.6 - 2009-04-15 (BP&AI)
------------------------
	+ Corrected param/code mismatch.
	+ Docs updated. 

Version 0.5 - 2009-03-11 (AI)
------------------------
	+ DEPEND file updated

Version 0.4 - 2009-02-26 (AI)
------------------------
	+ caldb files included in the task.
	+ par parameter files updated.

Version 0.3 - 2009-02-20 (AI)
------------------------
	+ upgrade fortran 77 subroutines.

Version 0.2 - 2009-02-06 (AI)
------------------------
	+ New subroutines added
	+ parameter interfaces updated

Version 0.1 - 2009-02-03 (AI)
------------------------
	+ First version of ESAS.

