1
C @(#)lsfun1.for 19.1 (ES0-DMD) 02/25/03 13:17:40
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
SUBROUTINE LSFUN1(NRRES,NRPRM,PRM,FCTVEC)
30
C+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
39
C Function to compute the approximating function at each point.
40
C Pass the control to different routines according to IMAGE or TABLE
43
C Approximating Function.
46
C Test the type of FIT and go to respective routines
52
C CALL LSFUN1(NRRES,NRPRM,PRM,FCTVEC)
55
C NRRES INTEGER Number of residuals
56
C NRPRM INTEGER Number of parameters
57
C PRM (NRPRM) DOUBLE Parameters
63
C FCTVEC (NRRES) DOUBLE Approximating values
73
C Ph. DEFERT, Feb 1986
78
C-----------------------------------------------------------------------
81
C .. Scalar Arguments ..
82
INTEGER NRPRM,NRRES,MADRID(1)
84
C .. Array Arguments ..
85
DOUBLE PRECISION FCTVEC(NRRES),PRM(NRPRM)
87
C .. External Files ..
88
INCLUDE 'MID_INCLUDE:FITNAGI.INC/NOLIST'
90
INCLUDE 'MID_INCLUDE:FITNAGC.INC/NOLIST'
92
C .. Executable Statements ..
93
IF (FILTYP(1:1).EQ.'T') THEN
94
CALL LSFU1T(NRRES,NRPRM,PRM,FCTVEC)
97
CALL LSFU1I(NRRES,NRPRM,PRM,FCTVEC,MADRID(PTRI),
98
+ MADRID(PTRM),NRPIX(1),NRPIX(2),NRPIX(3))