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

« back to all changes in this revision

Viewing changes to libsrc/ftoc-new/stp.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
/*===========================================================================
 
2
  Copyright (C) 1995-2009 European Southern Observatory (ESO)
 
3
 
 
4
  This program is free software; you can redistribute it and/or 
 
5
  modify it under the terms of the GNU General Public License as 
 
6
  published by the Free Software Foundation; either version 2 of 
 
7
  the License, or (at your option) any later version.
 
8
 
 
9
  This program is distributed in the hope that it will be useful,
 
10
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
  GNU General Public License for more details.
 
13
 
 
14
  You should have received a copy of the GNU General Public 
 
15
  License along with this program; if not, write to the Free 
 
16
  Software Foundation, Inc., 675 Massachusetts Ave, Cambridge, 
 
17
  MA 02139, USA.
 
18
 
 
19
  Correspondence concerning ESO-MIDAS should be addressed as follows:
 
20
        Internet e-mail: midas@eso.org
 
21
        Postal address: European Southern Observatory
 
22
                        Data Management Division 
 
23
                        Karl-Schwarzschild-Strasse 2
 
24
                        D 85748 Garching bei Muenchen 
 
25
                        GERMANY
 
26
===========================================================================*/
 
27
 
 
28
/*++++++++++++++++++++++++  stp.fc +++++++++++++++++++++++++++++++++++++++
 
29
.LANGUAGE C
 
30
.IDENTIFICATION Module stp.fc
 
31
.COMMENTS
 
32
Module contains layer between the plane/line related FORTRAN STxxxx interfaces
 
33
and the SC_interfaces written in (hopefully independent) C
 
34
.AUTHOR         K. Banse        ESO - Garching
 
35
.KEYWORDS       standard interfaces.
 
36
.ENVIRONMENT    FORTRAN and C standards
 
37
.VERSION  [1.00] 950622:  created
 
38
 
 
39
 090611         last modif
 
40
-----------------------------------------------------------------------------*/
 
41
 
 
42
#include <ftoc_comm.h>
 
43
#include <midas_def.h>
 
44
 
 
45
 
 
46
#include <stdlib.h>
 
47
 
 
48
 
 
49
int   mm;
 
50
 
 
51
char *ptr1;
 
52
char *loc_pntr();
 
53
 
 
54
/*
 
55
 
 
56
*/
 
57
 
 
58
/*==========================================================================*/
 
59
 
 
60
/*** stat = SCPGET(no,plandir,planno,bufadr) ***/
 
61
 
 
62
ROUTINE STP1(no,plandir,planno,status)
 
63
int *no;        /* IN : file no. of data frame */
 
64
int *plandir;   /* IN : plane direction */
 
65
int *planno;    /* IN : no. of plane */
 
66
int *status;
 
67
 
 
68
{
 
69
ptr1 = loc_pntr(1,&mm);             /* get location of "bufadr" */
 
70
 
 
71
*status = SCPGET(*no,*plandir,*planno,ptr1);
 
72
 
 
73
return 0;
 
74
}
 
75
 
 
76
/*==========================================================================*/
 
77
 
 
78
/*** stat = SCPPUT(no,plandir,planno,bufadr) ***/
 
79
 
 
80
ROUTINE STP2(no,plandir,planno,status)
 
81
int *no;        /* IN : file no. of data frame */
 
82
int *plandir;   /* IN : plane direction */
 
83
int *planno;    /* IN : no. of plane */
 
84
int *status;
 
85
 
 
86
{
 
87
ptr1 = loc_pntr(1,&mm);             /* get location of "bufadr" */
 
88
 
 
89
*status = SCPPUT(*no,*plandir,*planno,ptr1);
 
90
 
 
91
return 0;
 
92
}