1
/*===========================================================================
2
Copyright (C) 1995-2009 European Southern Observatory (ESO)
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.
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.
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,
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
26
===========================================================================*/
28
/*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
30
.AUTHOR Rein H. Warmels, ESO-IPG
31
.KEYWORDS High level graphics interface, Graphics keywords
33
.PURPOSE Fortran to C interface for PCK
34
.COMMENTS Module contains interfaces for the keyword routines
35
.ENVIRONMENT MIDAS FORTRAN and C standards
36
.VERSION 1.0 13-Oct-1993 RHW
39
-----------------------------------------------------------------------------*/
41
#include <proto_plt.h>
54
/*==========================================================================*/
56
/*** idst = PTKRDC(cpar,maxvals,actvals,cval) ***/
58
ROUTINE PPP6(maxvals,actvals)
59
int *maxvals; /* IN : no. of elements to get */
60
int *actvals; /* OUT: actual no. of elements returned */
66
ptr1 = strp_pntr(1); /* get stripped string of "cpar" */
67
ptr2 = loc_pntr(1,&mm); /* get location of "cval" */
69
PCKRDC(ptr1,*maxvals,actvals,ptr2);
72
if ((n > 0) && (n < mm)) *(ptr2+n) = ' ';
77
/*==========================================================================*/
79
/*** idst = PTKRDI(ipar,maxvals,actvals,ival) ***/
81
ROUTINE PPP7(maxvals,actvals,ival)
82
int *maxvals; /* IN : no. of elements to get */
83
int *actvals; /* OUT: actual no. of elements returned */
84
int *ival; /* OUT: values for the parameters */
87
ptr1 = strp_pntr(1); /* get stripped string of "ipar" */
89
PCKRDI(ptr1,*maxvals,actvals,ival);
93
/*==========================================================================*/
95
/*** idst = PTKRDR(rpar,maxvals,actvals,rval) ***/
97
ROUTINE PPP8(maxvals,actvals,rval)
98
int *maxvals; /* IN : no. of elements to get */
99
int *actvals; /* OUT: actual no. of elements returned */
100
float *rval; /* OUT: values for the parameters */
103
ptr1 = strp_pntr(1); /* get stripped string of "ipar" */
105
PCKRDR(ptr1,*maxvals,actvals,rval);
109
/*==========================================================================*/
111
/*** idst = PTKWRC(cpar,value) ***/
117
ptr1 = strp_pntr(1); /* get stripped string of "cpar" */
118
ptr2 = strp_pntr(2); /* get stripped string of "value" */
124
/*==========================================================================*/
126
/*** idst = PTKWRI(ipar,nrval,ival) ***/
129
ROUTINE PPP10(nrval,ival)
130
int *nrval; /* IN : no. of elements to write */
131
int *ival; /* IN : values for the parameters */
134
ptr1 = strp_pntr(1); /* get stripped string of "ipar" */
136
PCKWRI(ptr1,*nrval,ival);
140
/*==========================================================================*/
142
/*** idst = PTKWRR(rpar,nrval,rval) ***/
144
ROUTINE PPP11(nrval,rval)
145
int *nrval; /* IN : no. of elements to write */
146
float *rval; /* IN : values for the parameters */
149
ptr1 = strp_pntr(1); /* get stripped string of "ipar" */
151
PCKWRR(ptr1,*nrval,rval);