1
C @(#)ftcomp.for 19.1 (ESO-DMD) 02/25/03 13:17:31
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 Massachusetts Ave, Cambridge,
20
C Correspondence 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
SUBROUTINE FTCOMP(ISTAT)
30
C++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
31
C.COPYRIGHT: Copyright (c) 1987 European Southern Observatory,
34
C.VERSION: 1.0 ESO-FORTRAN Conversion, AA 17:25 - 13 JAN 1988
36
C.LANGUAGE: F77+ESOext
46
C INTERFACE ROUTINES FOR THE FITTING STRUCTURES
48
C COMPUTE FITTED VALUES FOR THE DEFINED INDEPENDENT
49
C VARIABLES, RESULT ON THE DEFINED DEPENDENT VARIABLE
59
C----------------------------------------------------------------
65
INTEGER ICOL(2),ISTAT,NCOL,NROW,NSC,I,IUNIT
66
INTEGER NP1, NP2, NP3, NAC, NAR
71
DOUBLE PRECISION RES(2),RES1(2)
72
LOGICAL NULL(8),VALID,ISEL
74
INCLUDE 'MID_INCLUDE:FITI.INC/NOLIST'
75
INCLUDE 'MID_INCLUDE:FITC.INC/NOLIST'
83
IF (FZMAPPED.EQ.0) THEN
90
IF (FZTYPE.EQ.'TBL ') THEN
92
C READ GENERAL INFO AND SET UP OUTPUT COLUMNS
94
CALL TBIGET(FZIDEN,NCOL,NROW,NSC,NAC,NAR,ISTAT)
96
IF (FZWEIGHT.GT.0) THEN
106
CALL TBSGET(FZIDEN,I,ISEL,ISTAT)
107
CALL TBRRDR(FZIDEN,I,FZNIND,FZIVAR,VALUE,NULL,
109
VALID = ISEL .AND. ( .NOT. NULL(1)) .AND.
110
+ ( .NOT. NULL(2)) .AND. ( .NOT. NULL(3))
112
CALL FTCVAL(FZIVAR,VALUE,RES)
115
CALL TBRWRD(FZIDEN,I,NCOL,ICOL,RES1,ISTAT)
122
CALL TBSINI(FZIDEN,ISTAT)
123
CALL TBTCLO(FZIDEN,ISTAT)
130
IF (FZNAXIS.GT.3) THEN
131
CALL STTPUT('Max.no. of dim.exceded',ISTAT)
139
CALL FTCVA1(MADRID(FZPTRI),MADRID(FZPTRM),FZNAXIS,
140
+ NP1,NP2,NP3,FZSTART,FZSTEP,CUT)
141
CALL STDWRR(FZIDEN,'LHCUTS',CUT,1,4,IUNIT,ISTAT)
142
CALL STFCLO(FZIDEN,ISTAT)