| 1 |
/*=========================================================================== |
| 2 |
Copyright (C) 1995-2005 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: [email protected] |
| 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 |
|
| 29 |
#include <ftoc.h> |
| 30 |
|
| 31 |
|
| 32 |
static int savdsp, *pin1, *pin2, *pin3, *pin4, *pin5; |
| 33 |
|
| 34 |
ROUTINE IID1(dsplay,in1,in2,in3,in4,in5) |
| 35 |
fint2c *dsplay; |
| 36 |
fint2c *in1; |
| 37 |
fint2c *in2; |
| 38 |
fint2c *in3; |
| 39 |
fint2c *in4; |
| 40 |
fint2c *in5; |
| 41 |
|
| 42 |
{ |
| 43 |
savdsp = *dsplay; |
| 44 |
pin1 = in1; |
| 45 |
pin2 = in2; |
| 46 |
pin3 = in3; |
| 47 |
pin4 = in4; |
| 48 |
pin5 = in5; |
| 49 |
return 0; |
| 50 |
} |
| 51 |
|
| 52 |
|
| 53 |
SUBROUTINE IIDERR(erno,erstr,strl) |
| 54 |
CHARACTER erstr; |
| 55 |
fint2c *erno; |
| 56 |
fint2c *strl; |
| 57 |
|
| 58 |
{ |
| 59 |
int IIDERR_C(); |
| 60 |
|
| 61 |
IIDERR_C(*erno,CHAR_LOC(erstr),strl); |
| 62 |
return 0; |
| 63 |
} |
| 64 |
|
| 65 |
ROUTINE IIDRST(dsplay,idst) |
| 66 |
fint2c *dsplay; |
| 67 |
fint2c *idst; |
| 68 |
|
| 69 |
{ |
| 70 |
int IIDRST_C(); |
| 71 |
|
| 72 |
*idst = IIDRST_C(*dsplay); |
| 73 |
return 0; |
| 74 |
} |
| 75 |
|
| 76 |
ROUTINE IIDUPD(dsplay,idst) |
| 77 |
fint2c *dsplay; |
| 78 |
fint2c *idst; |
| 79 |
|
| 80 |
{ |
| 81 |
int IIDUPD_C(); |
| 82 |
|
| 83 |
*idst = IIDUPD_C(*dsplay); |
| 84 |
return 0; |
| 85 |
} |
| 86 |
|
| 87 |
ROUTINE IIDICO(dsplay,flag,idst) |
| 88 |
fint2c *dsplay; |
| 89 |
fint2c *flag; |
| 90 |
fint2c *idst; |
| 91 |
|
| 92 |
{ |
| 93 |
int IIDICO_C(); |
| 94 |
|
| 95 |
*idst = IIDICO_C(*dsplay,*flag); |
| 96 |
return 0; |
| 97 |
} |
| 98 |
|
| 99 |
/* CG. ATTENTION to local cconfno */ |
| 100 |
ROUTINE IIDSEL(dsplay,confno,idst) |
| 101 |
fint2c *dsplay; |
| 102 |
fint2c *confno; |
| 103 |
fint2c *idst; |
| 104 |
|
| 105 |
{ |
| 106 |
int cconfno; |
| 107 |
int IIDSEL_C(); |
| 108 |
|
| 109 |
cconfno = *confno; |
| 110 |
cconfno --; /* in C we count from 0 on ... */ |
| 111 |
|
| 112 |
*idst = IIDSEL_C(*dsplay,cconfno); |
| 113 |
return 0; |
| 114 |
} |
| 115 |
|
| 116 |
|
| 117 |
ROUTINE IIDSDP(dsplay,chans,nochan,lutf,ittf,idst) |
| 118 |
fint2c *dsplay; |
| 119 |
fint2c *idst; |
| 120 |
fint2c *chans; |
| 121 |
fint2c *nochan; |
| 122 |
fint2c *lutf; |
| 123 |
fint2c *ittf; |
| 124 |
|
| 125 |
{ |
| 126 |
int IIDSDP_C(); |
| 127 |
|
| 128 |
*idst = IIDSDP_C(*dsplay,chans,*nochan,lutf,ittf); |
| 129 |
return 0; |
| 130 |
} |
| 131 |
|
| 132 |
ROUTINE IIDIAG(dsplay,luno,idst) |
| 133 |
fint2c *dsplay; |
| 134 |
fint2c *luno; |
| 135 |
fint2c *idst; |
| 136 |
|
| 137 |
{ |
| 138 |
int IIDIAG_C(); |
| 139 |
|
| 140 |
*idst = IIDIAG_C(*dsplay,*luno); |
| 141 |
return 0; |
| 142 |
} |
| 143 |
|
| 144 |
ROUTINE IID5(depth,nlut,nitt,ncurs,idst) |
| 145 |
fint2c *depth; |
| 146 |
fint2c *nlut; |
| 147 |
fint2c *nitt; |
| 148 |
fint2c *ncurs; |
| 149 |
fint2c *idst; |
| 150 |
|
| 151 |
{ |
| 152 |
int IIDQDV_C(); |
| 153 |
|
| 154 |
/* CALL IID1(DSPLAY,TOTCNF,SZX,SZY,0,0) */ |
| 155 |
|
| 156 |
*idst = IIDQDV_C(savdsp,pin1,pin2,pin3,depth,nlut,nitt,ncurs); |
| 157 |
return 0; |
| 158 |
} |
| 159 |
|
| 160 |
ROUTINE IID4(memszx,memszy,memdep,ittdep,nomem,idst) |
| 161 |
fint2c *memszx; |
| 162 |
fint2c *memszy; |
| 163 |
fint2c *memdep; |
| 164 |
fint2c *ittdep; |
| 165 |
fint2c *nomem; |
| 166 |
fint2c *idst; |
| 167 |
|
| 168 |
{ |
| 169 |
int IIDQDC_C(); |
| 170 |
|
| 171 |
/* CALL IID1(DSPLAY,CONFNO,MEMTYP,TOTMEM,CONFMD,MEMID) */ |
| 172 |
|
| 173 |
*idst = IIDQDC_C(savdsp,*pin1,*pin2,*pin3, |
| 174 |
pin4,pin5,memszx,memszy,memdep,ittdep,nomem); |
| 175 |
return 0; |
| 176 |
} |
| 177 |
|
| 178 |
ROUTINE IIDQCI(dsplay,capa,outsiz,outdat,total,idst) |
| 179 |
fint2c *dsplay; |
| 180 |
fint2c *capa; |
| 181 |
fint2c *outsiz; |
| 182 |
fint2c *outdat; |
| 183 |
fint2c *total; |
| 184 |
fint2c *idst; |
| 185 |
{ |
| 186 |
int IIDQCI_C(); |
| 187 |
|
| 188 |
*idst = IIDQCI_C(*dsplay,*capa,*outsiz,outdat,total); |
| 189 |
return 0; |
| 190 |
} |
| 191 |
|
| 192 |
|
| 193 |
ROUTINE IID2(splitf,splx,sply,idst) |
| 194 |
fint2c *splitf; |
| 195 |
fint2c *splx; |
| 196 |
fint2c *sply; |
| 197 |
fint2c *idst; |
| 198 |
{ |
| 199 |
int IIDSSS_C(); |
| 200 |
|
| 201 |
*idst = IIDSSS_C(savdsp,pin1,pin2,pin3,*splitf,*splx,*sply); |
| 202 |
return 0; |
| 203 |
} |
| 204 |
|
| 205 |
ROUTINE IID3(yoff,depth,packf,data,idst) |
| 206 |
fint2c *yoff; |
| 207 |
fint2c *depth; |
| 208 |
fint2c *packf; |
| 209 |
fint2c *data; |
| 210 |
fint2c *idst; |
| 211 |
|
| 212 |
{ |
| 213 |
int IIDSNP_C(); |
| 214 |
|
| 215 |
*idst = IIDSNP_C(savdsp,*pin1,*pin2,*pin3,*yoff,*depth,*packf,data); |
| 216 |
return 0; |
| 217 |
} |