next up previous contents index
Next: Table Interfaces Up: No Title Previous: Bibliography

   
Standard Interfaces


Module Version [3.10] (17-Jan-1994) Module SCC


Author:    K. Banse, ESO - Garching

Language:    C

Classification: MIDAS catalogues

Environment:

Comments:

This module contains the routines to interact with the catalogs of MIDAS.

The functions provided are:

Main arguments used by the routines are:

catfile
name of catalog


Function

SCCCRE
 

SCCCRE(catfile,type,flag)

char *catfile IN: catalog file (terminated with ` 6#60')
int type IN: type of files to use, same as in SCFCRE
int flag IN: = 1, if file 'dirfile.dat' exists


Function

SCCADD
 

SCCADD(catfile,name,ident)

char *catfile IN: catalog file
char *name IN: name of frame to be added
char *ident IN: IDENT info of frame to be added


Function

SCCSUB
 

SCCSUB(catfile,name)

char *catfile IN: catalog file
char *name IN: name of frame to be removed


Function

SCCGET
 

SCCGET(catfile,flag,name,ident,no)

char *catfile IN: catalog file
int flag IN: = 0 for name only, = 1 for name and identifier
char *name OUT: name of frame in next entry of catalog
char *ident OUT: identifier of that frame
int *no IN/OUT: current/next entry no. as input/output


Function

SCCLIS
 

SCCLIS(catfile,intval)

char *catfile IN: catalog file
int intval[2] IN: listing interval [low,hi]


Function

SCCFND
 

SCCFND(catfile,frmno,frame)

char *catfile IN: catalog file
int frmno IN: entry no. in catalog
char *frame OUT: corresponding frame name (terminated by 6#60)


Function

SCCSHO
 

SCCSHO(catfile,noent,last)

char *catfile IN: catalog file
int *noent OUT: no. of entries
int *last OUT: last entry no.




Module Version [3.10] (17-Jan-1994) Module SCD


Author:    K. Banse, ESO - Garching

Language:    C

Classification: standard interfaces, descriptors

Environment:

Comments:

This module contains the routines to interact with the descriptors of MIDAS frames.

The functions provided are:

Main arguments used by the routines are:

imno
file id of related MIDAS frame
descr
name of descriptor, max. 15 chars. long and must begin with an alphabetic char.
felem
first element to be accessed, the very first element is indicated by 1 (not by 0 as in C-arrays) for compatibility with the relevant FORTRAN interfaces.
maxvals
maximum number of elements required.
actvals
actual number of elements accessed, value returned by the routine.
unit
unit of descriptor, currently not implemented - just used as a placeholder for now.
null
no. of null values in descriptor, currently not implemented - just used as a placeholder for now.


Function

SCDCOP
 

SCDCOP(from,to,mask,dsc)

int from IN: file id of source frame
int to IN: file id of destination frame
int mask IN: copy_mask
char *dsc IN: name of descr. to copy (if mask = 4)


Function

SCDDEL
 

SCDDEL(imno,descr)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 chars.)


Function

SCDFND
 

SCDFND(imno,descr,type,noelem,bytelem)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 chars.)
char *type OUT: type of descr - I, R, C, D or ' ' (a blank)
int *noelem OUT: no. of elements
int *bytelem OUT: no. of bytes per element


Function

SCDINF
 

SCDINF(imno,npos,fno,buf,lbuf,numbuf)

int imno IN: file id of data frame
int npos IN: position of descriptor, beginning with 1
int fno IN: specify desired info
char *buf OUT: buffer for character descriptor info
int lbuf IN: max. length of buffer above
int *numbuf OUT: return buffer for numerical data


Function

SCDGETC
 

SCDGETC(imno,descr,felem,maxvals,actvals,values)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 chars.)
int felem IN: position of 1st element to be accessed
int maxvals IN: max. no. of characters to be returned
int *actvals OUT: actual no. of characters returned
char *values OUT: array for descriptor data


Function

SCDRDC
 

SCDRDC(imno,descr,noelm,felem,maxvals,actvals,values,unit,null)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 chars.)
int noelm IN: no. of bytes per data value
int felem IN: position of 1st element to be accessed
int maxvals IN: max. no. of values to be returned
int *actvals OUT: actual no. of values returned
char *values OUT: array for descriptor data
int *unit OUT: address of unit pointer
int *null OUT: no. of null values in data


Function

SCDRDD
 

SCDRDD(imno,descr,felem,maxvals,actvals,values,unit,null)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 chars.)
int felem IN: position of 1st element to be accessed
int maxvals IN: max. no. of values to be returned
int *actvals OUT: actual no. of values returned
double *values OUT: array for descriptor data
int *unit OUT: address of unit pointer
int *null OUT: no. of null values in data


Function

SCDRDH
 

SCDRDH(imno,descr,felem,maxvals,actvals,values,totvals)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 chars.)
int felem IN: position of 1st char. in help text to be accessed
int maxvals IN: max. no. of chars. to be returned
int *actvals OUT: actual no. of chars. returned
char *values OUT: buffer for help text
int *totvals OUT: total size of help text


Function

SCDRDI
 

SCDRDI(imno,descr,felem,maxvals,actvals,values,unit,null)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 chars.)
int felem IN: position of 1st element to be accessed
int maxvals IN: max. no. of values to be returned
int *actvals OUT: actual no. of values returned
int *values OUT: array for descriptor data
int *unit OUT: address of unit pointer
int *null OUT: no. of null values in data


Function

SCDRDR
 

SCDRDR(imno,descr,felem,maxvals,actvals,values,unit,null)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 chars.)
int felem IN: position of 1st element to be accessed
int maxvals IN: max. no. of values to be returned
int *actvals OUT: actual no. of values returned
float *values OUT: array for descriptor data
int *unit OUT: address of unit pointer
int *null OUT: no. of null values in data


Function

SCDWRC
 

SCDWRC(imno,descr,noelm,values,felem,nval,unit)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 char.)
int noelm IN: no. of bytes per data value
char *values IN: buffer with descriptor data
int felem IN: position of 1st descriptor value to be accessed
int nval IN: no. of data values to write
int *unit IN: unit-pointer


Function

SCDWRD
 

SCDWRD(imno,descr,values,felem,nval,unit)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 char.)
double *values IN: buffer with descriptor data
int felem IN: position of 1st descriptor value to be accessed
int nval IN: no. of data values to write
int *unit IN: unit-pointer


Function

SCDWRH
 

SCDWRH(imno,descr,values,felem,nval)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 char.)
char *values IN: buffer with help text
int felem IN: position of 1st char. in help text to be accessed
int nval IN: no. of characters to write


Function

SCDWRI
 

SCDWRI(imno,descr,values,felem,nval,unit)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 char.)
int *values IN: buffer with descriptor data
int felem IN: position of 1st descriptor value to be accessed
int nval IN: no. of data values to write
int *unit IN: unit-pointer


Function

SCDWRR
 

SCDWRR(imno,descr,values,felem,nval,unit)

int imno IN: file id of data frame
char *descr IN: descriptor name (max. 15 char.)
float *values IN: buffer with descriptor data
int felem IN: position of 1st descriptor value to be accessed
int nval IN: no. of data values to write
int *unit IN: unit-pointer




Module Version [3.10] (17-Jan-1994) Module SCE


Author:    K. Banse, ESO - Garching

Language:    C

Classification: standard interfaces, errors

Environment:

Comments:

This module contains the routines to handle errors in MIDAS.

The functions provided are:


Function

SCECNT
 

SCECNT(action,cont,log,disp)

char *action IN: GET or PUT
int *cont IN: pointer to continuation flag
int *log IN: pointer to log flag
int *disp IN: pointer to display flag


Function

SCETER
 

SCETER(errno,text)

int errno IN: error no.
char *text IN: message to display


Function

SCESIG
 

SCESIG(sys,text,stat)

char *sys IN: system from which error emanated
char *text IN: message to display
int stat IN: error no.




Module Version [3.10] (17-Jan-1994) Module SCF


Author:    K. Banse, ESO - Garching

Language:    C

Classification: standard interfaces, bulk data files

Environment:

Comments:

This module contains the routines to manipulate MIDAS data frames.

The functions provided are:

Main arguments used by the routines are:

name
name of MIDAS data frame
imno
file id of related MIDAS frame
dattype
format how the data is stored on disk
filtype
type of MIDAS data frame
iomode
access mode of the frame
felem
first element to be accessed, the very first element is indicated by 1 (not by 0 as in C-arrays) for compatibility with the relevant FORTRAN interfaces.


Function

SCFOPN
 

SCFOPN(name,dattype,newopn,filtype,imno)

char *name IN: name of data frame
int dattype IN: data types as defined below
int newopn IN: new_open_flag: = 0 open normally, = 1 open same file again
int filtype IN: filetype as defined below
int *imno OUT: file id of the frame


Function

SCFINF
 

SCFINF(name,fno,ibuf)

char *name IN: name of data frame
int fno IN: flag for requested info
int *ibuf OUT: buffer with requested info


Function

SCFCLO
 

SCFCLO(imno)

int imno IN: file id of data frame


Function

SCFCRE
 

SCFCRE(name,dattype,iomode,filtype,size,imno)

char *name IN: name of frame
int dattype IN: data type, e.g. D_R4_FORMAT, ...
int iomode IN: opening mode, e.g. F_O_MODE, ...
int filtype IN: filetype no., e.g. F_TBL_TYPE, ...
int size IN: size of frame (= no. of data values in file)
int *imno OUT: file id


Function

SCFDEL
 

SCFDEL(name)

char *name IN: name of frame


Function

SCFMAP
 

SCFMAP(imno,iomode,felem,size,actsize,pntr)

int imno IN: file id of data frame
int iomode IN: opening mode, e.g. F_O_MODE, ...
int felem IN: 1st pixel to be accessed in data space
int size IN: number of data values (pixels) to be mapped
int *actsize OUT: actual no. of pixels mapped
char **pntr OUT: pointer to data in memory


Function

SCFUNM
 

SCFUNM(imno)

int imno IN: file id of data frame


Function

SCFGET
 

SCFGET(imno,felem,size,actsize,bufadr)

int imno IN: file id of data frame
int felem IN: 1st pixel to be accessed in data space
int size IN: number of data values (pixels) to be read
int *actsize OUT: actual no. of pixels read
char *bufadr OUT: data buffer


Function

SCFPUT
 

SCFPUT(imno,felem,size,bufadr)

int imno IN: file id of data frame
int felem IN: 1st pixel to be accessed in data space
int size IN: number of data values (pixels) to be written
char *bufadr IN: data buffer


Function

SCFRNM
 

SCFRNM(oldname,newname)

char *oldname IN: old name
char *newname OUT: new name




Module Version [3.10] (17-Jan-1994) Module SCI


Author:    K. Banse, ESO - Garching

Language:    C

Classification: standard interfaces, data frames, descriptors

Environment:

Comments:

This module contains the (high level) routines to handle MIDAS images.

The functions provided are:

Main arguments used by the routines are:

name
name of MIDAS data frame
imno
file id of MIDAS frame
dattype
format how the data is stored on disk
filtype
type of MIDAS data frame
iomode
access mode of the frame
pntr
pointer to mapped data


Function

SCIGET
 

SCIGET(name,dattype,iomode,filtype,maxdim,naxis,npix,start,step,ident,cunit,pntr,imno)

char *name IN: data frame name
int dattype IN: data type
int iomode IN: opening mode of frame, F_I_MODE or F_IO_MODE
int filtype IN: filetype no.
int maxdim IN: maximum number of dimensions
int *naxis OUT: no of dimensions of the image
int *npix OUT: size of each dimension
double *start OUT: start coordinates: start is an array of naxis elements
double *step OUT: stepsizes : step is an array of naxis elements
char *ident OUT: ascii identifier of image
char *cunit OUT: unit of each axis (16 char per unit)
char **pntr OUT: pointer to mapped data
int *imno OUT: file id of data frame


Function

SCIPUT
 

SCIPUT(name,dattype,iomode,filtype,naxis,npix,start,step,ident,cunit,pntr,imno)

char *name IN: data frame name
int dattype IN: data type
int iomode IN: opening mode of frame, F_O_MODE or F_X_MODE
int filtype IN: file type no.
int naxis IN: no of dimensions of the image
int *npix IN: size of each dimension
double *start IN: start coordinates: start is an array of naxis elements
double *step IN: stepsizes : step is an array of naxis elements
char *ident IN: ascii identifier of image
char *cunit IN: unit of each axis (16 char per unit)
char **pntr OUT: pointer to mapped data
int *imno OUT: file id of data frame




Module Version [3.10] (17-Jan-1994) Module SCK


Author:    K. Banse, ESO - Garching

Language:    C

Classification: standard interfaces, keyword data base

Environment:

Comments:

This module contains the routines to interact with the keywords of MIDAS.

The functions provided are:

Main arguments used by the routines are:

key
name of keyword, max. 8 chars. long and must begin with an alphabetic char.
felem
first element to be accessed, the very first element is indicated by 1 (not by 0 as in C-arrays) for compatibility with the relevant FORTRAN interfaces.
maxvals
maximum number of elements required.
actvals
actual number of elements accessed, value returned by the routine.
unit
unit of keyword, currently not implemented - just used as a placeholder for now.
null
no. of null values in keyword, currently not implemented - just used as a placeholder for now.


Function

SCKFND
 

SCKFND(key,type,noelem,bytelem)

char *key IN : keyword name (max. 8 chars.)
char *type OUT: type of key
int *noelem OUT: no. of elements
int *bytelem OUT: no. of bytes per element


Function

SCKINF
 

SCKINF(npos,fno,buf,lbuf,numbuf)

int npos IN: position of keyword
int fno IN: specifies desired info, 1 = NAME, 2 = TYPE, 3 = SIZE
char *buf OUT: buffer for NAME + TYPE info
int lbuf IN: max. length of buffer above
int *numbuf OUT: buffer for SIZE info


Function

SCKGETC
 

SCKGETC(key,felem,maxvals,actvals,values)

char *key IN: keyword name (max. 8 chars.)
int felem IN: position of 1st element to be accessed
int maxvals IN: max. no. of characters to be returned
int *actvals OUT: actual no. of characters returned
char *values OUT: buffer for data values


Function

SCKPRC
 

SCKPRC(prompt,key,noelm,felem,maxvals,actvals,values,unit,null)

char *prompt IN: prompt string (null terminated)
char *key IN: keyword name (max. 8 chars.)
int noelm IN: no. of bytes per data value
int felem IN: 1st data item to be read
int maxvals IN: no. of elements to get
int *actvals OUT: actual no. of elements returned
char *values OUT: buffer for data values
int *unit OUT: address of unit-pointer
int *null OUT: no. of null values in keyword


Function

SCKPRD
 

SCKPRD(prompt,key,felem,maxvals,actvals,values,unit,null)

char *prompt IN: prompt string (null terminated)
char *key IN: keyword name (max. 8 chars.)
int felem IN: 1st data item to be read
int maxvals IN: no. of elements to get
int *actvals OUT: actual no. of elements returned
double *values OUT: buffer for data values
int *unit OUT: address of unit-pointer
int *null OUT: no. of null values in keyword


Function

SCKPRI
 

SCKPRI(prompt,key,felem,maxvals,actvals,values,unit,null)

char *prompt IN: prompt string (null terminated)
char *key IN: keyword name (max. 8 chars.)
int felem IN: 1st data item to be read
int maxvals IN: no. of elements to get
int *actvals OUT: actual no. of elements returned
int *values OUT: buffer for data values
int *unit OUT: address of unit-pointer
int *null OUT: no. of null values in keyword


Function

SCKPRR
 

SCKPRR(prompt,key,felem,maxvals,actvals,values,unit,null)

char *prompt IN: prompt string (null terminated)
char *key IN: keyword name (max. 8 chars.)
int felem IN: 1st data item to be read
int maxvals IN: no. of elements to get
int *actvals OUT: actual no. of elements returned
float *values OUT: buffer for data values
int *unit OUT: address of unit-pointer
int *null OUT: no. of null values in keyword


Function

SCKRDC
 

SCKRDC(key,noelm,felem,maxvals,actvals,values,unit,null)

char *key IN: keyword name (max. 8 chars.)
int noelm IN: no. of bytes per data value
int felem IN: first data item to be read
int maxvals IN: no. of elements to get
int *actvals OUT: actual no. of elements returned
char *values OUT: buffer for data values
int *unit OUT: address of unit-pointer
int *null OUT: no. of null values in keyword


Function

SCKRDD
 

SCKRDD(key,felem,maxvals,actvals,values,unit,null)

char *key IN: keyword name (max. 8 chars.)
int felem IN: first data item to be read
int maxvals IN: no. of elements to get
int *actvals OUT: actual no. of elements returned
double *values OUT: buffer for data values
int *unit OUT: address of unit-pointer
int *null OUT: no. of null values in keyword


Function

SCKRDI
 

SCKRDI(key,felem,maxvals,actvals,values,unit,null)

char *key IN: keyword name (max. 8 chars.)
int felem IN: first data item to be read
int maxvals IN: no. of elements to get
int *actvals OUT: actual no. of elements returned
int *values OUT: buffer for data values
int *unit OUT: address of unit-pointer
int *null OUT: no. of null values in keyword


Function

SCKRDR
 

SCKRDR(key,felem,maxvals,actvals,values,unit,null)

char *key IN: keyword name (max. 8 chars.)
int felem IN: first data item to be read
int maxvals IN: no. of elements to get
int *actvals OUT: actual no. of elements returned
float *values OUT: buffer for data values
int *unit OUT: address of unit-pointer
int *null OUT: no. of null values in keyword


Function

SCKWRC
 

SCKWRC(key,noelm,values,felem,maxvals,unit)

char *key IN: keyword name (max. 8 chars.)
int noelm IN: no. of bytes per data value
char *values IN: buffer with data values
int felem IN: first data item to be written
int maxvals IN: no. of elements to write
int *unit IN: unit-pointer


Function

SCKWRD
 

SCKWRD(key,values,felem,maxvals,unit)

char *key IN: keyword name (max. 8 chars.)
double *values IN: buffer with data values
int felem IN: first data item to be written
int maxvals IN: no. of elements to write
int *unit IN: unit-pointer


Function

SCKWRI
 

SCKWRI(key,values,felem,maxvals,unit)

char *key IN: keyword name (max. 8 chars.)
int *values IN: buffer with data values
int felem IN: first data item to be written
int maxvals IN: no. of elements to write
int *unit IN: unit-pointer


Function

SCKWRR
 

SCKWRR(key,values,felem,maxvals,unit)

char *key IN: name of keyword
float *values IN: buffer with data values
int felem IN: first data item to be written
int maxvals IN: no. of elements to write
int *unit IN: unit-pointer




Module Version [3.10] (17-Jan-1994) Module SCST


Author:    K. Banse, ESO - Garching

Language:    C

Classification: standard interfaces.

Environment:

Comments:

This module contains the routines to link into the MIDAS environment and to display text.

The functions provided are:


Function

SCSPRO
 

SCSPRO(prog)

char *prog IN: name of calling program


Function

SCSEPI
 

SCSEPI()


Function

SCTPUT
 

SCTPUT(text)

char *text IN: text string to be displayed


Function

SCTDIS
 

SCTDIS(text,bc)

char *text IN: text string to be displayed
int bc IN: backspace count




Module Version [3.00] (15-Jan-1992) Module STC


Author:    K. Banse ESO - Garching

Language:    F77

Classification: MIDAS catalogues

Environment:

Comments:

This module contains the routines to interact with the catalogs of MIDAS.

The functions provided are:

Main arguments used by the routines are:

CATFIL
name of catalog


Subroutine

STCCRE
 

STCCRE(CATFIL,TYPE,FLAG,STAT)

CHARACTER*(*) CATFIL IN: name of catalog file
INTEGER TYPE IN: type of files to use
INTEGER FLAG IN: = 1, if `dirfile.dat' exists
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STCADD
 

STCADD(CATFIL,NAME,IDENT,STAT)

CHARACTER*(*) CATFIL IN: name of catalog file
CHARACTER*(*) NAME IN: name of frame to be added
CHARACTER*(*) IDENT IN: IDENT info of frame to be added
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STCSUB
 

STCSUB(CATFIL,NAME,STAT)

CHARACTER*(*) CATFIL IN: name of catalog file
CHARACTER*(*) NAME IN: name of frame to be removed
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STCGET
 

STCGET(CATFIL,FLAG,NAME,IDENT,NO,STAT)

CHARACTER*(*) CATFIL IN: name of catalog file
INTEGER FLAG IN: 0 for name only, = 1 for name and identifier
CHARACTER*(*) NAME OUT: name of frame
CHARACTER*(*) IDENT OUT: identifier of that frame
INTEGER NO IN/OUT: current/next entry no. as input/output
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STCLIS
 

STCLIS(CATFIL,INTVAL,STAT)

CHARACTER*(*) CATFIL IN: name of catalog file
INTEGER INTVAL(2) IN: listing interval [low,hi]
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STCFND
 

STCFND(CATFIL,FRMNO,FRAME,STAT)

CHARACTER*(*) CATFIL IN: name of catalog file
INTEGER FRMNO IN: entry no. in catalog
CHARACTER*(*) FRAME OUT: corresponding frame name
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STCSHO
 

STCSHO(CATFIL,NOENT,LAST,STAT)

CHARACTER*(*) CATFIL IN: name of catalog file
INTEGER NOENT OUT: no. of entries
INTEGER LAST OUT: last entry no.
INTEGER STAT OUT: status (0 = o.k.)




Module Version [3.00] (15-Jan-1992) Module STD


Author:    K. Banse ESO - Garching

Language:    F77

Classification: standard interfaces, descriptors

Environment:

Comments:

This module contains the routines to interact with the descriptors of MIDAS frames.

The functions provided are:

Main arguments used by the routines are:

NO
file id of related MIDAS frame
DSC
name of descriptor, max. 15 chars. long and must begin with an alphabetic char.
FELM
first element to be accessed, the very first element is indicated by 1 FORTRAN interfaces.
MAXS
maximum number of elements required.
ACTS
actual number of elements accessed, value returned by the routine.
DUN
unit of descriptor, currently not implemented - just used as a placeholder for now.
DNUL
no. of null values in descriptor, currently not implemented - just used as a placeholder for now.
STAT
return status.


Subroutine

STDCOP
 

STDCOP(FROM,TO,MASK,DSC,STAT)

INTEGER FROM IN: file id of source frame
INTEGER TO IN: file id of destination frame
INTEGER MASK IN: copy_mask
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDDEL
 

STDDEL(NO,DSC,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDFND
 

STDFND(NO,DSC,TYPE,NOELM,BYTELM,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
CHARACTER*(*) TYPE OUT: descriptor type - I, R, C, D or ' ' (a blank)
INTEGER NOELM OUT: no. of elements
INTEGER BYTELM OUT: no. of bytes per element
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDINF
 

STDINF(NO,NPOS,FNO,BUF,NUMBUF,STAT)

INTEGER NO IN: file id of frame
INTEGER NPOS IN: position of descr.
INTEGER FNO IN: specify desired info
CHARACTER*(*) BUF OUT: return buffer (FNO=1,2)
INTEGER NUMBUF OUT: return value (FNO=3)
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDRDC
 

STDRDC (NO,DSC,NOELM,FELM,MAXS,ACTS,VALS,DUN,DNUL,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
INTEGER NOELM IN: no. of bytes per data value
INTEGER FELM IN: first element
INTEGER MAXS IN: max. no. of values to read
INTEGER ACTS OUT: actual no. of values read
CHARACTER*(*) VALS OUT: buffer for data
INTEGER DUN OUT: units
INTEGER DNUL OUT: no. of null values
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDRDD
 

STDRDD(NO,DSC,FELM,MAXS,ACTS,VALS,DUN,DNUL,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
INTEGER FELM IN: first element
INTEGER MAXS IN: max. no. of values to read
INTEGER ACTS OUT: actual no. of values read
DOUBLE PRECISION VALS(1) OUT: buffer for data
INTEGER DUN OUT: units
INTEGER DNUL OUT: no. of null values
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDRDH
 

STDRDH(NO,DSC,FELM,MAXS,ACTS,VALS,TOTVLS,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
INTEGER FELM IN: first element
INTEGER MAXS IN: max. no. of values to read
INTEGER ACTS OUT: actual no. of values read
CHARACTER*(*) VALS OUT: buffer for help text
INTEGER TOTVLS OUT: total size of help text
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDRDI
 

STDRDI(NO,DSC,FELM,MAXS,ACTS,VALS,DUN,DNUL,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
INTEGER FELM IN: first element
INTEGER MAXS IN: max. no. of values to read
INTEGER ACTS OUT: actual no. of values read
INTEGER VALS(1) OUT: buffer for data
INTEGER DUN OUT: units
INTEGER DNUL OUT: no. of null values
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDRDR
 

STDRDR(NO,DSC,FELM,MAXS,ACTS,VALS,DUN,DNUL,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
INTEGER FELM IN: first element
INTEGER MAXS IN: max. no. of values to read
INTEGER ACTS OUT: actual no. of values read
REAL VALS(1) OUT: buffer for data
INTEGER DUN OUT: units
INTEGER DNUL OUT: no. of null values
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDWRC
 

STDWRC(NO,DSC,NOELM,VALS,FELM,MAXS,DUN,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
INTEGER NOELM IN: no. of bytes per data value
CHARACTER*(*) VALS IN: data buffer
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of values to write
INTEGER DUN IN: units
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDWRD
 

STDWRD(NO,DSC,VALS,FELM,MAXS,DUN,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
DOUBLE PRECISION VALS(1) IN: data buffer
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of values to write
INTEGER DUN IN: units
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDWRH
 

STDWRH(NO,DSC,VALS,FELM,MAXS,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
CHARACTER*(*) VALS IN: buffer with help text
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of characters to write
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDWRI
 

STDWRI(NO,DSC,VALS,FELM,MAXS,DUN,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
INTEGER VALS(1) IN: data buffer
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of values to write
INTEGER DUN IN: units
INTEGER STAT OUT: status (=0, o.k.)


Subroutine

STDWRR
 

STDWRR(NO,DSC,VALS,FELM,MAXS,DUN,STAT)

INTEGER NO IN: file id of frame
CHARACTER*(*) DSC IN: descriptor name (max 15 chars.)
REAL VALS(1) IN: data buffer
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of values to write
INTEGER DUN IN: units
INTEGER STAT OUT: status (=0, o.k.)




Module Version [3.00] (15-Jan-1992) Module STE


Author:    K. Banse ESO - Garching

Language:    F77

Classification: standard interfaces, errors

Environment:

Comments:

This module contains the routines to handle errors in MIDAS.

The functions provided are:


Subroutine

STECNT
 

STECNT(ACTION,CONT,LOG,DISP)

CHARACTER*(*) ACTION IN: action = GET or PUT
INTEGER CONT IN/OUT: continue flag
INTEGER LOG IN/OUT: log flag
INTEGER DISP IN/OUT: display flag


Subroutine

STETER
 

STETER(ERRNO,TEXT)

INTEGER ERRNO IN: error number
CHARACTER*(*) TEXT IN: error message


Subroutine

STESIG
 

STESIG(SYS,TEXT,ERRNO)

CHARACTER*(*) SYS IN: subsystem
CHARACTER*(*) TEXT IN: error message
INTEGER ERRNO IN: error number




Module Version [3.00] (15-Jan-1992) Module STF


Author:    K. Banse ESO - Garching

Language:    F77

Classification: standard interfaces, bulk data frames

Environment:

Comments:

This module contains the routines to manipulate MIDAS data frames.

The functions provided are:

Main arguments used by the routines are:

NAME
name of MIDAS data frame
NO
file id of related MIDAS frame
DATTYP
format how the data is stored on disk
FILTYP
type of MIDAS data frame
IOMODE
access mode of the frame
FELM
first element to be accessed, the very first element is indicated by 1
STAT
return status.


Subroutine

STFOPN
 

STFOPN(NAME,DATTYP,NEWOPN,FILTYP,NO,STAT)

CHARACTER*(*) NAME IN: name of frame
INTEGER DATTYP IN: data type
INTEGER NEWOPN IN: new_open_flag: = 0 open normally, = 1 open same file again
INTEGER FILTYP IN: file type
INTEGER NO OUT: file id of frame
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STFINF
 

STFINF(NAME,FNO,IBUF,STAT)

CHARACTER*(*) NAME IN: name of frame
INTEGER FNO IN: info_request flag
INTEGER IBUF(5) OUT: returned info
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STFCLO
 

STFCLO(NO,STAT)

INTEGER NO IN: file id of frame
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STFCRE
 

STFCRE(NAME,DATTYP,IOMODE,FILTYP,SIZE,NO,STAT)

CHARACTER*(*) NAME IN: name of frame
INTEGER DATTYP IN: data type, e.g. D_R4_FORMAT, ...
INTEGER IOMODE IN: opening mode, e.g. F_O_MODE, ...
INTEGER FILTYP IN: file type, e.g. F_TBL_TYPE, ...
INTEGER SIZE IN: size of frame (= no. of data values in file)
INTEGER NO OUT: file id of frame
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STFDEL
 

STFDEL(NAME,STAT)

CHARACTER*(*) NAME IN: name of frame
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STFMAP
 

STFMAP(NO,IOMODE,FELM,SIZE,ACTSZ,PNTR,STAT)

INTEGER NO IN: file id of frame
INTEGER IOMODE IN: mode
INTEGER FELM IN: 1st pixel to map
INTEGER SIZE IN: no. of pixels to map
INTEGER ACTSZ OUT: actual no. mapped
INTEGER PNTR OUT: pointer to mapped area
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STFUNM
 

STFUNM(NO,STAT)

INTEGER NO IN: file id of frame
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STFGET
 

STFGET(NO,FELM,SIZE,ACTSZ,BUFADR,STAT)

INTEGER NO IN: file id of frame
INTEGER FELM IN: 1st pixel to be accessed
INTEGER SIZE IN: no. of pixels to be read
INTEGER ACTSZ OUT: actual no. read
INTEGER BUFADR OUT: data buffer
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STFPUT
 

STFPUT(NO,FELM,SIZE,BUFADR,STAT)

INTEGER NO IN: file id of frame
INTEGER FELM IN: 1st pixel to be accessed
INTEGER SIZE IN: no. of pixels to be written
INTEGER BUFADR IN: data buffer
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STFRNM
 

STFRNM(OLDNAME,NEWNAME,STAT)

CHARACTER*(*) OLDNAME IN: old name of frame
CHARACTER*(*) NEWNAME IN: new name of frame
INTEGER STAT OUT: status (0 = o.k.)




Module Version [3.00] (15-Jan-1992) Module STI


Author:    K. Banse ESO - Garching

Language:    F77

Classification: standard interfaces, data frames, descriptors

Environment:

Comments:

This module contains the (high level) routines to handle MIDAS images.

The functions provided are:

Main arguments used by the routines are:

NAME
name of MIDAS data frame.
NO
file id of MIDAS frame.
DATTYP
format how the data is stored on disk.
FILTYP
type of MIDAS data frame.
IOMODE
access mode of the frame.
PNTR
pointer to mapped data.
STAT
return status.


Subroutine

STIGET
 

STIGET(NAME,DATTYP,IOMODE,FILTYP,MAXDIM, NAXIS,NPIX,START,STEP,

IDENT,CUNIT,PNTR,NO,STAT)

CHARACTER*(*) NAME IN: name of frame
INTEGER DATTYP IN: data type
INTEGER IOMODE IN: opening mode, F_I_MODE or F_IO_MODE
INTEGER FILTYP IN: file type
INTEGER MAXDIM IN: max. no. of dimensions
INTEGER NAXIS OUT: no. of dimensions
INTEGER NPIX(1) OUT: no. of pixels per axis
DOUBLE PRECISION START(1) OUT: start values
DOUBLE PRECISION STEP(1) OUT: stepsizes
CHARACTER*(*) IDENT OUT: ASCII identification for frame
CHARACTER*(*) CUNIT OUT: unit of each axis + data
INTEGER PNTR OUT: pointer to mapped data
INTEGER NO OUT: file id of frame
INTEGER STAT OUT: status ( 0 = o.k. )


Subroutine

STIPUT
 

STIPUT(NAME,DATTYP,IOMODE,FILTYP, NAXIS,NPIX,START,STEP,

IDENT,CUNIT,PNTR,NO,STAT)

CHARACTER*(*) NAME IN: name of frame
INTEGER DATTYP IN: data type
INTEGER IOMODE IN: opening mode, F_O_MODE or F_X_MODE
INTEGER FILTYP IN: file type
INTEGER NAXIS IN: no. of dimensions
INTEGER NPIX(1) IN: no. of pixels per axis
DOUBLE PRECISION START(1) IN: start values
DOUBLE PRECISION STEP(1) IN: stepsizes
CHARACTER*(*) IDENT IN: ASCII identification for frame
CHARACTER*(*) CUNIT IN: unit of each axis + data
INTEGER PNTR OUT: pointer to mapped data
INTEGER NO OUT: file id of frame
INTEGER STAT OUT: status ( 0 = o.k. )




Module Version [3.00] (15-Jan-1992) Module STK


Author:    K. Banse ESO - Garching

Language:    F77

Classification: standard interfaces, keyword data base

Environment:

Comments:

This module contains the routines to interact with the keywords of MIDAS.

The functions provided are:

Main arguments used by the routines are:

KEY
name of keyword, max. 8 chars. long and must begin with an alphabetic char.
FELM
first element to be accessed, the very first element is indicated by 1
MAXS
maximum number of elements required.
ACTS
actual number of elements accessed, value returned by the routine.
KUN
unit of keyword, currently not implemented - just used as a placeholder for now.
KNUL
no. of null values in keyword, currently not implemented - just used as a placeholder for now.
STAT
return status.


Subroutine

STKFND
 

STKFND(KEY,TYPE,NOELM,BYTELM,STAT)

CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
CHARACTER*(*) TYPE OUT: type of keyword
INTEGER NOELM OUT: no. of elements in keyword
INTEGER BYTELM OUT: bytes per element
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKINF
 

STKINF(NPOS,FNO,BUF,NUMBUF,STAT)

INTEGER NPOS IN: position of keyword in data base, beginning with 1
INTEGER FNO IN: info flag: 1 = name, 2 = type, 3 = size
CHARACTER*(*) BUF OUT: char. info buffer (FNO = 1, 2)
INTEGER NUMBUF OUT: numerical info buffer (FNO = 3)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKPRC
 

STKPRC(PROMPT,KEY,NOELM,FELM,MAXS,ACTS,VALS,KUN,KNUL,STAT)

CHARACTER*(*) PROMPT IN: prompt string
CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER NOELM IN: no. of bytes per data value
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to get
INTEGER ACTS OUT: actual no. of elements returned
CHARACTER*(*) VALS OUT: buffer for data values
INTEGER KUN OUT: units (not used yet...)
INTEGER KNUL OUT: no. of null values (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKPRD
 

STKPRD(PROMPT,KEY,FELM,MAXS,ACTS,VALS,KUN,KNUL,STAT)

CHARACTER*(*) PROMPT IN: prompt string
CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to get
INTEGER ACTS OUT: actual no. of elements returned
DOUBLE PRECISION VALS(1) OUT: buffer for data values
INTEGER KUN OUT: units (not used yet...)
INTEGER KNUL OUT: no. of null values (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKPRI
 

STKPRI(PROMPT,KEY,FELM,MAXS,ACTS,VALS,KUN,KNUL,STAT)

CHARACTER*(*) PROMPT IN: prompt string
CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to get
INTEGER ACTS OUT: actual no. of elements returned
INTEGER VALS(1) OUT: buffer for data values
INTEGER KUN OUT: units (not used yet...)
INTEGER KNUL OUT: no. of null values (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKPRR
 

STKPRR(PROMPT,KEY,FELM,MAXS,ACTS,VALS,KUN,KNUL,STAT)

CHARACTER*(*) PROMPT IN: prompt string
CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to get
INTEGER ACTS OUT: actual no. of elements returned
REAL VALS(1) OUT: buffer for data values
INTEGER KUN OUT: units (not used yet...)
INTEGER KNUL OUT: no. of null values (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKRDC
 

STKRDC(KEY,NOELM,FELM,MAXS,ACTS,VALS,KUN,KNUL,STAT)

CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER NOELM IN: no. of bytes per data value
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to get
INTEGER ACTS OUT: actual no. of elements returned
CHARACTER*(*) VALS OUT: buffer for data values
INTEGER KUN OUT: units (not used yet...)
INTEGER KNUL OUT: no. of null values (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKRDD
 

STKRDD(KEY,FELM,MAXS,ACTS,VALS,KUN,KNUL,STAT)

CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to get
INTEGER ACTS OUT: actual no. of elements returned
DOUBLE PRECISION VALS(1) OUT: buffer for data values
INTEGER KUN OUT: units (not used yet...)
INTEGER KNUL OUT: no. of null values (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKRDI
 

STKRDI(KEY,FELM,MAXS,ACTS,VALS,KUN,KNUL,STAT)

CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to get
INTEGER ACTS OUT: actual no. of elements returned
INTEGER VALS(1) OUT: buffer for data values
INTEGER KUN OUT: units (not used yet...)
INTEGER KNUL OUT: no. of null values (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKRDR
 

STKRDR(KEY,FELM,MAXS,ACTS,VALS,KUN,KNUL,STAT)

CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to get
INTEGER ACTS OUT: actual no. of elements returned
REAL VALS(1) OUT: buffer for data values
INTEGER KUN OUT: units (not used yet...)
INTEGER KNUL OUT: no. of null values (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKWRC
 

STKWRC(KEY,NOELM,VALS,FELM,MAXS,KUN,STAT)

CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER NOELM IN: no. of bytes per data value
CHARACTER*(*) VALS IN: buffer for data values
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to write
INTEGER KUN IN: units (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKWRD
 

STKWRD(KEY,VALS,FELM,MAXS,KUN,STAT)

CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
DOUBLE PRECISION VALS(1) IN: buffer for data values
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to write
INTEGER KUN IN: units (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKWRI
 

STKWRI(KEY,VALS,FELM,MAXS,KUN,STAT)

CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
INTEGER VALS(1) IN: buffer for data values
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to write
INTEGER KUN IN: units (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)


Subroutine

STKWRR
 

STKWRR(KEY,VALS,FELM,MAXS,KUN,STAT)

CHARACTER*(*) KEY IN: keyword name (max. 8 chars)
REAL VALS(1) IN: buffer for data values
INTEGER FELM IN: first element
INTEGER MAXS IN: no. of elements to write
INTEGER KUN IN: units (not used yet...)
INTEGER STAT OUT: status (0 = o.k.)




Module Version [3.00] (15-Jan-1994) Module STST


Author:    K. Banse ESO - Garching

Language:    F77

Classification: standard interfaces, MIDAS environment, text

Environment:

Comments:

This module contains the routines to link into the MIDAS environment and to display text.

The functions provided are:


Subroutine

STSPRO
 

STSPRO(PROG)

CHARACTER*(*) PROG IN: program name


Subroutine

STSEPI
 

STSEPI


Subroutine

STTPUT
 

STTPUT(TEXT,STAT)

CHARACTER*(*) TEXT IN: text string
INTEGER STAT OUT: return status (0 = o.k.)


Subroutine

STTDIS
 

STTDIS(TEXT,FLAG,STAT)

CHARACTER*(*) TEXT IN: text string
INTEGER BC IN: backspace count
INTEGER STAT OUT: return status (0 = o.k.)




next up previous contents index
Next: Table Interfaces Up: No Title Previous: Bibliography
Send comments to web@eso.org
Last update: 1998-10-23