ChangeLog for espfilt
=====================

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

Version 5.0.1 - 2023-04-01 (BP)
-----------------------------
	+ Added some array and pointer initializations (to 0).
	+ Added hist_cnts(1)=0 to fix another gauss fit blow up discovered.

Version 5.0 - 2022-06-21 (BP)
-----------------------------
	+ Completely eliminated NR subroutines.
	+ Added call to goflib subroutine nelmin to find local minima.
	+ Added function kip_gauss to perform fitting instead of NR.

Version 4.6 - 2022-04-08 (BP)
-----------------------------
	+ Descoped withlongnames (interfered with downstream tasks).
	+ Added warning to test for when fit "blows up".
	+ Corrected docs discrepancies.

Version 4.5 - 2022-04-01 (BP)
-----------------------------
        + Bug fix in ratio method.
	+ Allocation mismatch fix.
	+ Cleaned up docs.
	+ Removed withlongnames parameter.
	+ Removed future delta method (for now).
	+ Changed 'fov' output filenames to 'all' except fovlc.
	+ Stopped creating QDP file for ratio method.
	+ Added check for when fit ``blows up'' and produces NaN causing keyword write error.

Version 4.4 - 2022-03-18 (BP)
-----------------------------
	+ Added withoot parameter to process PN OOT when previously it was run separately.
	+ Added elow and ehigh as keywords.
	+ Array bound bug fixes.

Version 4.3 - 2021-09-19 (BP)
-----------------------------
	+ Changed output file names from fov* to all* (e.g. fovevc to
	allevc) to reflect values are for the entire detector including
	corner data.

Version 4.2 - 2021-08-27 (BP)
-----------------------------
	+ Updates to params defaults for smooth, ratio, elow, ehigh,keepinterfiles.
	+ Bug fixes.
	+ Added diagnosic messages.
	+ Changed some output filenames ('fov' to 'all'; all = 'FOV+corner
	data').
	+ Updates to docs.

Version 4.1 - 2021-04-16 (BP)
-----------------------------
	+ Bug fix for adding attributes to output files.
	+ Cleaned up diagnostic output.
	+ Cleaned up DEPEND and src/Makefile.

Version 4.0 - 2021-04-02 (BP)
-----------------------------
	+ Added diagnosis for when fit evaluation 'blows up'.
	+ Added parameters withoot and ootfile to work on EPN OOT eventlists.
	+ Added parameter keepinterfiles to toggle deleting intermediary files.
	+ Added parameter limits (parameter limits for gaussian fit).
	+ Changed params specchanmin/max to elow/ehigh to match other ESAS tasks.
	+ Changed parameter eventset to eventfile.
	+ Added parameter withlongnames to added elow/ehigh to default filenames.
	+ Added parameter rangescale (histogram fit range scale factor).
	+ Added parameter allowsigma (sigma limit for unflared rates).
	+ Moved subroutines binit and smooth to goflib.
	+ Rewrote, then moved marq_mod subs library to goflib.
	+ Cleaned up layout file.
	+ Fixed array index bug caused by idl to fortran misconversion.
	+ Writes measured fit as keywords to output files.
	+ Writes elow/ehigh as keywords to output files.
	+ Updated, fixed several evselect selection expressions.
	+ Added scrutinization of PN SUBMODE. Quits for small window/Fast*modes.
	+ Adjustment to clobber behavior.
	+ Adjustments to QDP output.
	+ Added measured fit values to QDP output files.
	+ Changed fit evaluation 'bad data' from -1 to -999E+99 for keyword.
	+ Bug fixes to kpamoeba arrays.

Version 3.4.4 - 2020-10-22 (BP)
-----------------------------
	+ Cleaned up docs.
	+ fixed parameter and layout files.
	+ New version for SAS-19 Patch includes changes below before version 2.7.1.
        + Placeholder re-release of old espfilt for SAS-19.

Version 3.4.3 - 2020-10-19 (BP)
-----------------------------
        + Corrected array overbounds in histo call.
	+ Added release to columnT to free memory.

Version 3.4.2 - 2020-10-14 (BP)
-----------------------------
	+ Added KDK's plim(2)*2 code to correct fit.
	+ Added pointer nullify to address memory problem with low memory computers.

Version 3.4.1 - 2020-10-12 (BP)
-----------------------------
	+ Fixed low width blowup in amoeba issue.
	+ Added limits parameter.

Version 3.4 - 2020-09-18 (BP)
-----------------------------
	+ Changed params rangescale and added allowsigma.
	+ Changed definition of delt.
	+ Added withoot to perform OOT clean eventlist creation.
	+ Updated some evselect expressions (added flagg).
	+ Removed revolut tests since handled by SAS elsewhere.
	+ Changed final cleaned EVLI evselect parameters.
	+ Added cleaning of PN OOT file from epchain.
	+ Added params for OOT processing.
	+ Tweaks to QDP output.
	+ Fixed bug in Gaussian fitting.
	+ Param allowsigma added, param rangescale value changed

Version 3.3 - 2020-08-13 (BP)
-----------------------------
	+ Array boundary bug fix.
	+ Tweaks to param defaults.
	+ Added trim(adjustl()) to evselect calls for runaway strings.

Version 3.2 - 2020-07-19 (BP)
-----------------------------
	+ Adjusted par and lyt files.
	+ Added to doc.
	+ Added ELOW and EHIGH keywords to output files.
	+ Adjusted evselect call.

Version 3.1 - 2020-07-19 (BP)
-----------------------------
	+ Mismatch with goflib I/O call.

Version 3.0 - 2020-07-17 (BP)
-----------------------------
	+ Moved subs to new SAS package goflib.
	+ Updates to generated file names .
	+ Updates to evselect selection criterion
	+ Writes Norm, Width, Center out to XXX file.
	+ Minor changes to parameter defaults.

Version 2.7.1 - 2018-05-05 (BP)
-----------------------------
	+ Closed SPR-7453 (checks for PrimeFullWindow and
	PrimeFullWindowExtended PN SUBMODEs.

Version 2.7 - 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 2.6 - 2016-09-08 (AI)
	+ Tag added to espfilt_mod.f90 source code to enable (NAGWare) or
	disable (gfortran) to use of the f90_unix_proc module needed in NAGWare
	for system call.

Version 2.5 - 2016-07-20 (BHP)
	+ Fixed laTeX bug causing make doc failure.
	+ Compliant with gfortran (removed use f90_unix_proc)

Version 2.4 - 2015-11-17 (BHP)
	+ Fixed laTeX bug causing make doc failure.

Version 2.3 - 2015-05-12 (AI)
	+ corner option in method parameter removed.
	+ varibale nchan_flc initialized in clean_lc subroutine to avoid
	out of memory errors in some OS.

Version 2.1.1 - 2014-10-24 (RDS)
	+ Copy of 2.2

Version 2.2 - 2014-10-23 (RDS)
	+ Moved release of file and table pointers to end of
	+ the clean_lc subroutine (SPR-7242)

Version 2.1 - 2014-09-20 (BP)
	+ Fixed parameter mis-match (SPR7223).
	+ Updated doc to match param and code.

Version 2.0 - 2014-07-26 (BP,SS)
	+ Returned espfilt to standalone task.
	+ Fixed ALLOCATABLE memory problem (SPRnnnn).
	+ Uses cp instead of mv for Hera compliance.
	+ Fixes for processing MOS1 CCD#4 data after CCD#3 loss.
	+ Rationalize nomenclature, work with pn window mode data
	+ Added scaling of fit range for the histogram method.
	+ Improve the output plotting.

Version 1.0.4 - 2008-06-08 (BP)
	+ Update of plot layout, docs.

Version 1.0.3 - 2008-06-08 (BP)
	+ Update of layout, test harness, Ratio Method.

Version 1.0.2 - 2008-06-24 (EO)
	+ Correction of test harness by Eduardo Ojero.

Version 1.0.1 - 2008-05-22 (BP)
	+ New Upload for error in pgp during uploadsas.

Version 1.0 - 2008-05-18 (BP)
	+ Addressed SPRs. Reconciled Devel, Release. Added Ratio Method.

Version 0.8.2 2007-07-07 (BP)
	+ Addressed SPRs. Upgraded to all F95 code.

Version 0.8.1 2007-06-01 (BP)
	+ Corrected help output, PN plot titles, docs, colors.

Version 0.8 2007-04-08 (BP)
	+ Corrected fitting output problem with array elements.

Version 0.7 2007-02-09 (BP)
	+ Changed all Astro::FITS calls to DAL

Version 0.6 2006-09-01 (BP)
	+ First issue sent to SOC.

Version 0.5 2006-05-26 (BP)
	+ Conversion back to f77 from perl.
	+ Marquardt Numerical Recipes functions added.

Version 0.4 2005-12-16 (BP)
	+ Input channel numbers not hardcoded.

Version 0.3 2005-11-11 (BP)
	+ First working perl version of espfilt.

Version 0.2 2005-09-19 (BP)
	+ First f95 compiled version. 

Version 0.1 2005-08-27 (SS, AI)
	+ Initial f77 and Perl script combination version.
	+ First pkgmaker version.
