~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to contrib/invent/libsrc/updtll.for

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
C @(#)updtll.for        19.1 (ES0-DMD) 02/25/03 13:25:40
 
2
C===========================================================================
 
3
C Copyright (C) 1995 European Southern Observatory (ESO)
 
4
C
 
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.
 
9
C
 
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.
 
14
C
 
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, 
 
18
C MA 02139, USA.
 
19
C
 
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 
 
26
C                       GERMANY
 
27
C===========================================================================
 
28
C
 
29
C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 
30
C
 
31
C
 
32
C
 
33
C-----------------------------------------------------------------------
 
34
      SUBROUTINE UPDTLL ( MCAT , NL , IDET , NXS , ILIM ,
 
35
     &                                          IDA , IP , M )
 
36
C
 
37
      IMPLICIT NONE
 
38
      INTEGER  ILIM , NL , NXS
 
39
      INTEGER  IDA(2,0:ILIM)
 
40
      INTEGER  IDET(NXS,0:ILIM)
 
41
      INTEGER  IP
 
42
      INTEGER  K , L , L1 , L2
 
43
      INTEGER  M , MCAT(4,NL) , NN
 
44
C
 
45
C ******      Look for other close detections.
 
46
C
 
47
      DO 10 K = 0 , ILIM
 
48
          L1 = MAX( 1 , IP - IDA(1,K) )
 
49
          L2 = MIN( NXS , IP + IDA(2,K) )
 
50
          DO 20 L = L1 , L2
 
51
            NN = IDET(L,K)
 
52
            IF ( NN .NE. 0 ) THEN
 
53
                CALL UPDTL( MCAT , NL , NN , M )
 
54
            ENDIF
 
55
   20          CONTINUE
 
56
   10      CONTINUE
 
57
C
 
58
C ******      Write detection entry in array IDET.
 
59
C
 
60
      IDET(IP,0) = M
 
61
C
 
62
      RETURN
 
63
C
 
64
      END