~ubuntu-branches/debian/jessie/eso-midas/jessie

« back to all changes in this revision

Viewing changes to libsrc/ftoc-new/ysti.for

  • Committer: Package Import Robot
  • Author(s): Ole Streicher
  • Date: 2014-04-22 14:44:58 UTC
  • Revision ID: package-import@ubuntu.com-20140422144458-okiwi1assxkkiz39
Tags: upstream-13.09pl1.2+dfsg
ImportĀ upstreamĀ versionĀ 13.09pl1.2+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
C===========================================================================
 
2
C Copyright (C) 1995-2006 European Southern Observatory (ESO)
 
3
C
 
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.
 
8
C
 
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.
 
13
C
 
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, 
 
17
C MA 02139, USA.
 
18
C
 
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 
 
25
C                       GERMANY
 
26
C===========================================================================
 
27
 
 
28
C ++++++++++++++++++++++++  sti.for +++++++++++++++++++++++++++++++++++++++
 
29
C .LANGUAGE Fortran 77
 
30
C .IDENTIFICATION Module sti.for
 
31
C .COMMENTS
 
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
 
39
C 060327        last modif
 
40
C -----------------------------------------------------------------------------
 
41
C
 
42
      SUBROUTINE STIGET(NAME,DATTYPE,IOMODE,FILTYPE,MAXDIM,NAXIS,NPIX,
 
43
     +                  START,STEP,IDENT,CUNIT,PNTR,NO,STATUS)
 
44
 
45
      CHARACTER*(*)   NAME
 
46
      INTEGER     DATTYPE,IOMODE,FILTYPE,MAXDIM,NAXIS,NPIX(*)
 
47
      DOUBLE PRECISION  START(*), STEP(*)
 
48
      CHARACTER*(*)   IDENT, CUNIT
 
49
      INTEGER*8   PNTR
 
50
      INTEGER     NO, STATUS
 
51
 
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
 
55
 
56
      CALL STI1(DATTYPE,IOMODE,FILTYPE,MAXDIM,NAXIS,NPIX,
 
57
     +          START,STEP,PNTR,NO,STATUS)
 
58
 
 
59
      RETURN
 
60
      END
 
61
C
 
62
 
63
      SUBROUTINE STIPUT(NAME,DATTYPE,IOMODE,FILTYPE,NAXIS,NPIX,
 
64
     +                  START,STEP,IDENT,CUNIT,PNTR,NO,STATUS)
 
65
 
66
      CHARACTER*(*)   NAME
 
67
      INTEGER     DATTYPE,IOMODE,FILTYPE,NAXIS,NPIX(*)
 
68
      DOUBLE PRECISION  START(*), STEP(*)
 
69
      CHARACTER*(*)   IDENT, CUNIT
 
70
      INTEGER*8   PNTR
 
71
      INTEGER     NO, STATUS
 
72
 
73
      CALL STSTR(1,NAME)                              !STRIPPED_STRING
 
74
      CALL STSTR(2,IDENT)                             !STRIPPED_STRING
 
75
      CALL STSTR(3,CUNIT)                             !STRIPPED_STRING
 
76
 
77
      CALL STI2(DATTYPE,IOMODE,FILTYPE,NAXIS,NPIX,
 
78
     +          START,STEP,PNTR,NO,STATUS)
 
79
C
 
80
      RETURN
 
81
      END
 
82