1
C @(#)rmflst.for 19.1 (ES0-DMD) 02/25/03 13:25:38
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+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
33
C----------------------------------------------------------------------
34
SUBROUTINE RMFLST(M, L0, L1, NREG, LSTP, NCAT)
37
INCLUDE 'MID_REL_INCL:INVENT.INC/NOLIST'
43
INTEGER LSTP(0:4,0:NREG)
44
INTEGER NCAT(NIPAR,MAXCNT)
48
C INTEGER NCT1(NIPAR) , NCT2(NIPAR)
51
C REAL PMT1(NRPAR) , PMT2(NRPAR)
52
C REAL PRC1(0:MAXSUB) , PRC2(0:MAXSUB)
58
C ****** Find first object in the region LOBJ.
60
C IF ( M .GT. L0 .AND. M .LE. L1 ) THEN
66
C READ ( ISF , REC=M ) NCT1 , PMT1 , PRC1
70
IF ( LOBJ .EQ. M ) THEN
72
C *** M is the first object on list.
86
C WRITE ( ISF , REC=M ) NCT1 , PMT1 , PRC1
88
ELSE IF ( LOBJ .EQ. 0 ) THEN
95
C WRITE ( ISF , REC=M ) NCT1 , PMT1 , PRC1
99
C *** M is in the middle or on the end of list.
102
C IF ( LOBJ .GT. L0 .AND. LOBJ .LE. L1 ) THEN
107
C READ ( ISF , REC=LOBJ ) NCT2 , PMT2 , PRC2
111
IF ( NOBJ .EQ. M ) THEN
120
C WRITE ( ISF , REC=M ) NCT1 , PMT1 , PRC1
126
C WRITE ( ISF , REC=LOBJ ) NCT2 , PMT2 , PRC2
128
ELSE IF ( NOBJ .EQ. 0 ) THEN
135
C WRITE ( ISF , REC=M ) NCT1 , PMT1 , PRC1
144
IF ( LSTP(3,0) .EQ. M ) THEN