1
C===========================================================================
2
C Copyright (C) 1995 European Southern Observatory (ESO)
4
C This program is free software; you can redistribute it and/or
5
C modify it under the terms of the GNU General Public License as
6
C published by the Free Software Foundation; either version 2 of
7
C the License, or (at your option) any later version.
9
C This program is distributed in the hope that it will be useful,
10
C but WITHOUT ANY WARRANTY; without even the implied warranty of
11
C MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
C GNU General Public License for more details.
14
C You should have received a copy of the GNU General Public
15
C License along with this program; if not, write to the Free
16
C Software Foundation, Inc., 675 Massachusetss Ave, Cambridge,
19
C Correspondence concerning ESO-MIDAS should be addressed as follows:
20
C Internet e-mail: midas@eso.org
21
C Postal address: European Southern Observatory
22
C Data Management Division
23
C Karl-Schwarzschild-Strasse 2
24
C D 85748 Garching bei Muenchen
26
C===========================================================================
28
C ++++++++++++++++++++++++ YEXTRCO.FOR +++++++++++++++++++++++++++++++++++++++
29
C .LANGUAGE Fortran 77
30
C .IDENTIFICATION Module YEXTRCO.FOR
32
C Module contains layer between the keyword related FORTRAN STxxxx interfaces
33
C and the SC_interfaces written in (hopefully independent) C
34
C .AUTHOR K. Banse ESO - Garching
35
C .KEYWORDS standard interfaces.
36
C .ENVIRONMENT FORTRAN and C standards
37
C .VERSION [1.00] 871207: created from SXFTOC.C
38
C ......................................................
42
C EXTCOO(IMNO,STRING,PIXDIM,SUBDIM,SUBLO,SUBHI,STAT)
43
C EXTCO1(IMNO,STRING,PIXDIM,SUBDIM,SUBLO,STAT)
47
C STRING: char.exp. input string of the form [c1,c2,c3:d1,d2,d3]
48
C PIXDIM: I*4 max. no. of dimensions
51
C SUBDIM: I*4 actual dimension of subframe
52
C SUBLO: I*4 array low pixels
53
C SUBHI: I*4 array high pixels
54
C STAT: I*4 return status, = 0 o.k., else not o.k.
58
C XEXTC2(IMNO,STRING,PIXDIM,SUBDIM,SUBLO,SUBHI,STAT)
59
C XEXTC1(IMNO,STRING,PIXDIM,SUBDIM,SUBLO,STAT)
61
C all parameters as above, except:
62
C SUBLO: R*4 array low pixels (for fractions of frame pixels)
63
C SUBHI: R*4 array high pixels
67
C --------------------------------------------------
70
SUBROUTINE ARTIMA(FLAG,IMNO,NPIX,STRING,SIZE,RETIMNO,STAT)
76
INTEGER NPIX, SIZE, RETIMNO, STAT
78
CALL YEXT1(IMNO,STRING)
79
CALL YART2(FLAG,NPIX,SIZE,RETIMNO,STAT)
84
SUBROUTINE EXTCOO(IMNO,STRING,PIXDIM,SUBDIM,SUBLO,SUBHI,STAT)
90
INTEGER SUBDIM,SUBLO,SUBHI,STAT
92
CALL YEXT1(IMNO,STRING)
93
CALL YEXTC1(PIXDIM,SUBDIM,SUBLO,SUBHI,STAT)
98
SUBROUTINE XEXTC2(IMNO,STRING,PIXDIM,SUBDIM,SUBLO,SUBHI,STAT)
104
INTEGER SUBDIM,SUBLO,SUBHI,STAT
106
CALL YEXT1(IMNO,STRING)
107
CALL YEXTC2(PIXDIM,SUBDIM,SUBLO,SUBHI,STAT)
112
SUBROUTINE EXTCO1(IMNO,STRING,PIXDIM,SUBDIM,SUBLO,STAT)
118
INTEGER SUBDIM,SUBLO,STAT
120
CALL YEXT1(IMNO,STRING)
121
CALL YEXC1(PIXDIM,SUBDIM,SUBLO,STAT)
126
SUBROUTINE XEXTC1(IMNO,STRING,PIXDIM,SUBDIM,SUBLO,STAT)
132
INTEGER SUBDIM,SUBLO,STAT
134
CALL YEXT1(IMNO,STRING)
135
CALL YEXC2(PIXDIM,SUBDIM,SUBLO,STAT)