1
C===========================================================================
2
C Copyright (C) 1995-2006 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 Massachusetts 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 ++++++++++++++++++++++++ sti.for +++++++++++++++++++++++++++++++++++++++
29
C .LANGUAGE Fortran 77
30
C .IDENTIFICATION Module sti.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
40
C -----------------------------------------------------------------------------
42
SUBROUTINE STIGET(NAME,DATTYPE,IOMODE,FILTYPE,MAXDIM,NAXIS,NPIX,
43
+ START,STEP,IDENT,CUNIT,PNTR,NO,STATUS)
46
INTEGER DATTYPE,IOMODE,FILTYPE,MAXDIM,NAXIS,NPIX(*)
47
DOUBLE PRECISION START(*), STEP(*)
48
CHARACTER*(*) IDENT, CUNIT
52
CALL STSTR(1,NAME) !STRIPPED_STRING
53
CALL STLOC(1,1,IDENT) !blanked CHAR_LOC
54
CALL STLOC(2,1,CUNIT) !blanked CHAR_LOC
56
CALL STI1(DATTYPE,IOMODE,FILTYPE,MAXDIM,NAXIS,NPIX,
57
+ START,STEP,PNTR,NO,STATUS)
63
SUBROUTINE STIPUT(NAME,DATTYPE,IOMODE,FILTYPE,NAXIS,NPIX,
64
+ START,STEP,IDENT,CUNIT,PNTR,NO,STATUS)
67
INTEGER DATTYPE,IOMODE,FILTYPE,NAXIS,NPIX(*)
68
DOUBLE PRECISION START(*), STEP(*)
69
CHARACTER*(*) IDENT, CUNIT
73
CALL STSTR(1,NAME) !STRIPPED_STRING
74
CALL STSTR(2,IDENT) !STRIPPED_STRING
75
CALL STSTR(3,CUNIT) !STRIPPED_STRING
77
CALL STI2(DATTYPE,IOMODE,FILTYPE,NAXIS,NPIX,
78
+ START,STEP,PNTR,NO,STATUS)