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

« back to all changes in this revision

Viewing changes to libsrc/ftoc-old/stfe.fc

  • 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
/* @(#)stfe.fc  19.1 (ES0-DMD) 02/25/03 13:54:15 */
 
2
/*===========================================================================
 
3
  Copyright (C) 1995 European Southern Observatory (ESO)
 
4
 
 
5
  This program is free software; you can redistribute it and/or 
 
6
  modify it under the terms of the GNU General Public License as 
 
7
  published by the Free Software Foundation; either version 2 of 
 
8
  the License, or (at your option) any later version.
 
9
 
 
10
  This program is distributed in the hope that it will be useful,
 
11
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
  GNU General Public License for more details.
 
14
 
 
15
  You should have received a copy of the GNU General Public 
 
16
  License along with this program; if not, write to the Free 
 
17
  Software Foundation, Inc., 675 Massachusetss Ave, Cambridge, 
 
18
  MA 02139, USA.
 
19
 
 
20
  Corresponding concerning ESO-MIDAS should be addressed as follows:
 
21
        Internet e-mail: midas@eso.org
 
22
        Postal address: European Southern Observatory
 
23
                        Data Management Division 
 
24
                        Karl-Schwarzschild-Strasse 2
 
25
                        D 85748 Garching bei Muenchen 
 
26
                        GERMANY
 
27
===========================================================================*/
 
28
 
 
29
/*++++++++++++++++++++++++  STFE.FC +++++++++++++++++++++++++++++++++++++++
 
30
.LANGUAGE C
 
31
.IDENTIFICATION Module STFE.FC
 
32
.COMMENTS
 
33
Module contains layer between the frame related FORTRAN STxxxx interfaces
 
34
and the SC_interfaces written in (hopefully independent) C
 
35
.AUTHOR         K. Banse        ESO - Garching
 
36
.KEYWORDS       standard interfaces.
 
37
.ENVIRONMENT    FORTRAN and C standards
 
38
.VERSION  [1.00] 871207:  created from SXFTOC.C
 
39
.VERSION  [2.60] 880415:  modified new version - the last one
 
40
.VERSION  [2.70] 890119:  add SZCFRNM
 
41
.VERSION  [2.80] 900316:  fix problem with FNAME_LEN+2 ...
 
42
.VERSION  [3.00] 901213:  Master file. CG.
 
43
-----------------------------------------------------------------------------*/
 
44
 
 
45
#include <ftoc.h>
 
46
#include <ftoc_comm.h>
 
47
#include <midas_def.h>
 
48
 
 
49
SUBROUTINE STFINF(name,fno,ibuf,status)
 
50
CHARACTER   name;       /* IN: name of data frame */
 
51
fint2c *fno;            /* IN: specify desired info,*/
 
52
                        /*     0 = FCT_number   */
 
53
                        /*     1 = version_no.,file_type,FCB.SWPSHORT */
 
54
                        /*         FCB.SWPLONG,FCB.FLOTFMT */
 
55
                        /*      2 = nobyte,format,pixpbl,stblok,lastblk */
 
56
                        /*      3 = FCB.PTRLDB,LEXBDF,PEXBDF,ENDLDB, */
 
57
                        /*      INDLDB,DBEGIN,DFILLED,DSIZE */
 
58
                        /*      99 = just check, if frame exists */
 
59
fint2c *ibuf;           /* OUT: buffer with desired info  */
 
60
fint2c *status;
 
61
{
 
62
    *status = SCFINF(STRIPPED_STRING(name),*fno,ibuf);
 
63
}
 
64
 
 
65
 
 
66
 
 
67
SUBROUTINE STFNAM(fno,name,namlen,status)
 
68
fint2c *fno;            /* IN : no. of data frame */
 
69
CHARACTER   name;       /* OUT: name of data frame */
 
70
fint2c *namlen;         /* IN: max. length of name */
 
71
fint2c *status;
 
72
{
 
73
    *status = SCFNAME(*fno,CHAR_LOC(name),*namlen);
 
74
}
 
75