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

« back to all changes in this revision

Viewing changes to contrib/invent/libsrc/inapsf.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 @(#)inapsf.for        19.1 (ES0-DMD) 02/25/03 13:25:34
 
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.INPUT/OUTPUT
 
31
C  Input parameters
 
32
C  RARR       real*4 array    real keywords
 
33
C  MAXSUB     integer*4       maximal subarray half edge
 
34
C  Output parameters
 
35
C  APSF       real*4 array    one dimensional p.s.f.
 
36
C-----------------------------------------------------------------------
 
37
      SUBROUTINE INAPSF ( RARR , MAXSUB , APSF )
 
38
C
 
39
      IMPLICIT  NONE
 
40
      REAL      RARR(64)
 
41
      INTEGER   MAXSUB
 
42
      REAL      APSF(0:MAXSUB)
 
43
C
 
44
      INTEGER   K , K2
 
45
C
 
46
      APSF(0) = 1.0
 
47
      K2 = MIN( 25 , MAXSUB )
 
48
      DO 30 K = 1 , K2
 
49
            APSF(K) = APSF(K-1) * 10**(-RARR(13+K))
 
50
  30      CONTINUE
 
51
        DO 31 K = 26 , MAXSUB
 
52
            APSF(K) = APSF(K-1) * 10**(-RARR(38))
 
53
  31      CONTINUE
 
54
C
 
55
      RETURN
 
56
C
 
57
      END