1
/* @(#)stia.fc 19.1 (ESO-IPG) 02/25/03 13:54:15 */
2
/*===========================================================================
3
Copyright (C) 1995 European Southern Observatory (ESO)
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.
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.
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,
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
27
===========================================================================*/
29
/*++++++++++++++++++++++++ STIA.FC +++++++++++++++++++++++++++++++++++++++
31
.IDENTIFICATION Module STIA.FC
33
Module contains layer between the Image realted 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] 880411: modified new version - the last one
40
.VERSION [2.70] 880919: use STRING_FCOPY to get character stuff back
41
.VERSION [2.80] 881028: START + STEP are now double
42
.VERSION [2.90] 900316: fix problems with FNAME_LEN+2
43
.VERSION [3.00] 901213: Master file. CG.
44
.VERSION [3.01] 911217: SCIGET needs to fill temporary strings. CG.
45
-----------------------------------------------------------------------------*/
48
#include <ftoc_comm.h>
49
#include <midas_def.h>
52
SUBROUTINE STIPUT(name,dattype,iomode,filtype,naxis,npix,
53
start,step,ident,cunit,pntr,no,status)
54
CHARACTER name; /* IN : data frame name */
55
fint2c *dattype; /* IN : data type */
56
fint2c *iomode; /* IN : mode for opening of frame */
57
fint2c *filtype; /* IN : type no: 1 = image, 2 = mask, 3 = table */
58
fint2c *naxis; /* IN : no of dimensions of the image */
59
fint2c *npix; /* IN : size of each dimension */
60
double *start; /* IN : start coordinates: start is the address of an */
61
/* array of naxis elements */
62
double *step; /* IN : stepsizes : step is the address of an array of*/
64
CHARACTER ident; /* IN : ascii identifier of image */
65
CHARACTER cunit; /* IN : unit of each axis (16 char per unit) */
66
flong2c *pntr; /* OUT: pointer to mapped data */
67
fint2c *no; /* OUT: file no. of data frame */
72
*status = SCIPUT(STRIPPED_STRING(name),*dattype,*iomode,*filtype,
73
*naxis,npix,start,step,
74
STRIPPED_STRING(ident),STRIPPED_STRING(cunit),&mypntr,no);
75
*pntr = COMMON_INDEX(mypntr);