1
C @(#)prflch.for 19.1 (ES0-DMD) 02/25/03 13:25:37
2
C===========================================================================
3
C Copyright (C) 1995 European Southern Observatory (ESO)
5
C This program is free software; you can redistribute it and/or
6
C modify it under the terms of the GNU General Public License as
7
C published by the Free Software Foundation; either version 2 of
8
C the License, or (at your option) any later version.
10
C This program is distributed in the hope that it will be useful,
11
C but WITHOUT ANY WARRANTY; without even the implied warranty of
12
C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
C GNU General Public License for more details.
15
C You should have received a copy of the GNU General Public
16
C License along with this program; if not, write to the Free
17
C Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
20
C Corresponding concerning ESO-MIDAS should be addressed as follows:
21
C Internet e-mail: midas@eso.org
22
C Postal address: European Southern Observatory
23
C Data Management Division
24
C Karl-Schwarzschild-Strasse 2
25
C D 85748 Garching bei Muenchen
27
C===========================================================================
29
C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31
C subroutine PRFLCH version 2.0 870725
32
C A. Kruszewski ESO Garching
36
C It checks if an average profile AVPR goes down with the increasing
37
C radius K at least as steep as p.s.f. multiplied by a factor DNEB.
38
C If not then a value of an image size LIM is adjusted.
41
C AVPR real*4 array one-dimensional profile
42
C LIM integer*4 number of significant profile rings
43
C KSAT integer*4 number of saturated profile rings
44
C HCUT real*4 saturation level
45
C STPR real*4 array logarithmic p.s.f.
46
C DNEB integer*4 rejection factor
48
C LIM integer*4 number of significant profile rings
49
C-----------------------------------------------------------------------
50
SUBROUTINE PRFLCH(AVPR, IHED, KSAT, HCUT, APSF, DNEB , LIM)
77
IF (.NOT.(KK.LE.LIM .AND. AVPR(KK).GT.0.0 .AND. IC.EQ.0)) THEN
80
TEMP = (AVPR(KL)/AVPR(KK)) - DNEB*(APSF(KL)/APSF(KK))
81
IF (TEMP .LT. 0.0) THEN