casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
miriad.h
Go to the documentation of this file.
1 /*
2 // Header that gives C++ code access to the MIRIAD IO routines
3 // Is now also used a global prototype header file for all C routines
4 //
5 // History:
6 //
7 // 21-oct-94 pjt Created as follows:
8 // cproto uvio.c hio.c dio.c bug.c pack.c headio.c maskio.c > miriad.h
9 // and edited to please the C++ compiler and the eye:
10 //
11 // 22-oct-94 pjt added hio.h definitions - clumsy .... pjt
12 // (the hio routines are macros we don't want to allow that here)
13 //
14 // fall-96 pjt minor tidying up for AIPS++ bimafiller release - pjt
15 // 13-dec-96 rjs Regenerated, using
16 // cproto -I$MIRINC -p -fARGS hio.c headio.c uvio.c xyio.c xyzio.c bug.c
17 // 07-feb-97 rjs Added "Const" to definitions, and eliminate some rubbish, as
18 // suggested by Scott Gordon.
19 // 19-Mar-97 rjs Check for definition of various thingos before doing them.
20 // 15-jun-01 pjt Added key.c for BIMA version (ATNF uses keyc.c) as well as
21 // the uvget* uvrd* macros from uvio.c
22 // 28-may-02 pjt LFS patches: make it for for > 2GB file using off_t/size_t (prep for MIR4)
23 // 17-jun-02 pjt added interface.c routines; now used as global prototype file
24 // 23-jun-02 pjt define MIR4 here if you want to enable the LSF and MIR4
25 // 30-aug-04 pjt removed deprecated ARGS() macro
26 // 1-dec-05 pjt added bugv_c
27 // 18-may-06 pjt/df added mir.c prototypes for mir (the miriad->mir converter)
28 // 12-feb-09 dhem added bughandler_c prototype (new function in bug.c)
29 // 01-apr-09 rjs Add additional interface to scrRecSz
30 // 7-jan-10 pjt re-aligned ATNF and CARMA code
31 // 14-dec-11 pkgw Declare errmsg_c()
32 */
33 
34 #if !defined(MIR_MIRIAD_H)
35 #define MIR_MIRIAD_H
36 
37 
38 /* comment this out if you only handle data < 2GB and need to be compatible with old MIRIAD */
39 /* or simply define MIR3 through compile options */
40 #if !defined(MIR3)
41 #define MIR4
42 #endif
43 
44 #include <sys/types.h> /* provides off_t */
45 #include <unistd.h>
46 #include <stdarg.h>
47 #include "sysdep.h" /* since it now contains the "pack.c" prototypes */
48 
49 /* Define const and void if needed. */
50 
51 #ifndef MIRIAD_TYPES_DEFINED
52 
53 #define MIRIAD_TYPES_DEFINED 1
54 #ifdef __STDC__
55 #if (__STDC__ == 1)
56 typedef void Void;
57 #define Const const
58 #else
59 typedef char Void;
60 #define Const /* NULL */
61 #endif /* (__STDC__ == 1) */
62 #else
63 typedef char Void;
64 #define Const /* NULL */
65 #endif /* __STDC__ */
66 
67 #if !defined(__cplusplus)
68 # define private static
69 #endif /* __cplusplus */
70 
71 /* Define the argument list if needed. */
72 
73 #if !defined(ARGS)
74 # if defined(__STDC__) || defined(__cplusplus)
75 # define ARGS(s) s
76 # else
77 # define ARGS(s) ()
78 # endif
79 #endif
80 
81 #endif
82 
83 #if defined(__cplusplus)
84 extern "C" {
85 #endif
86 
87 /* hio.h */
88 
89 #if !defined(TRUE)
90 # define TRUE 1
91 #else
92 # if TRUE != 1
93 # error "TRUE should be 1"
94 # endif
95 #endif
96 
97 #if !defined(FALSE)
98 # define FALSE 0
99 #else
100 # if FALSE != 0
101 # error "FALSE should be 0"
102 # endif
103 #endif
104 
105 #define H_BYTE 1
106 #define H_INT 2
107 #define H_INT2 3
108 #define H_REAL 4
109 #define H_DBLE 5
110 #define H_TXT 6
111 #define H_CMPLX 7
112 #define H_INT8 8
113 
114 /* hio.c */
115 
116 void hopen_c(int *tno, Const char *name, Const char *status, int *iostat);
117 void hflush_c(int tno, int *iostat);
118 void habort_c(void);
119 void hrm_c(int tno);
120 void hclose_c(int tno);
121 void hdelete_c(int tno, Const char *keyword, int *iostat);
122 void haccess_c(int tno, int *ihandle, Const char *keyword, Const char *status, int *iostat);
123 void hmode_c(int tno, char *mode);
124 int hexists_c(int tno, Const char *keyword);
125 void hdaccess_c(int ihandle, int *iostat);
126 off_t hsize_c(int ihandle);
127 void hio_c(int ihandle, int dowrite, int type, char *buf, off_t offset, size_t length, int *iostat);
128 void hseek_c(int ihandle, off_t offset);
129 off_t htell_c(int ihandle);
130 void hreada_c(int ihandle, char *line, size_t length, int *iostat);
131 void hwritea_c(int ihandle, Const char *line, size_t length, int *iostat);
132 
133 /* Macros defined in hio.c */
134 
135 #define hreadb_c(item,buf,offset,length,iostat) \
136  hio_c(item,FALSE,H_BYTE,buf,offset,length,iostat)
137 #define hwriteb_c(item,buf,offset,length,iostat) \
138  hio_c(item,TRUE,H_BYTE,buf,offset,length,iostat)
139 #define hreadi_c(item,buf,offset,length,iostat) \
140  hio_c(item,FALSE,H_INT,(char *)(buf),offset,length,iostat)
141 #define hwritei_c(item,buf,offset,length,iostat) \
142  hio_c(item,TRUE,H_INT,(char *)(buf),offset,length,iostat)
143 #define hreadj_c(item,buf,offset,length,iostat) \
144  hio_c(item,FALSE,H_INT2,(char *)(buf),offset,length,iostat)
145 #define hwritej_c(item,buf,offset,length,iostat) \
146  hio_c(item,TRUE,H_INT2,(char *)(buf),offset,length,iostat)
147 #define hreadl_c(item,buf,offset,length,iostat) \
148  hio_c(item,FALSE,H_INT8,(char *)(buf),offset,length,iostat)
149 #define hwritel_c(item,buf,offset,length,iostat) \
150  hio_c(item,TRUE,H_INT8,(char *)(buf),offset,length,iostat)
151 #define hreadr_c(item,buf,offset,length,iostat) \
152  hio_c(item,FALSE,H_REAL,(char *)(buf),offset,length,iostat)
153 #define hwriter_c(item,buf,offset,length,iostat) \
154  hio_c(item,TRUE,H_REAL,(char *)(buf),offset,length,iostat)
155 #define hreadd_c(item,buf,offset,length,iostat) \
156  hio_c(item,FALSE,H_DBLE,(char *)(buf),offset,length,iostat)
157 #define hwrited_c(item,buf,offset,length,iostat) \
158  hio_c(item,TRUE,H_DBLE,(char *)(buf),offset,length,iostat)
159 #define hreadc_c(item,buf,offset,length,iostat) \
160  hio_c(item,FALSE,H_CMPLX,(char *)(buf),offset,length,iostat)
161 #define hwritec_c(item,buf,offset,length,iostat) \
162  hio_c(item,TRUE,H_CMPLX,(char *)(buf),offset,length,iostat)
163 #define hwrite_c(item,type,buf,offset,length,iostat) \
164  hio_c(item,TRUE,type,(char *)(buf),offset,length,iostat)
165 #define hread_c(item,type,buf,offset,length,iostat) \
166  hio_c(item,FALSE,type,(char *)(buf),offset,length,iostat)
167 
168 /* headio.c */
169 
170 void hisopen_c (int tno, Const char *status);
171 void hiswrite_c (int tno, Const char *text);
172 void hisread_c (int tno, char *text, size_t length, int *eof);
173 void hisclose_c (int tno);
174 void wrhdr_c (int tno, Const char *keyword, double value);
175 void wrhdd_c (int tno, Const char *keyword, double value);
176 void wrhdi_c (int tno, Const char *keyword, int value);
177 void wrhdl_c (int tno, Const char *keyword, int8 value);
178 void wrhdc_c (int tno, Const char *keyword, Const float *value);
179 void wrhda_c (int tno, Const char *keyword, Const char *value);
180 void rdhdr_c (int tno, Const char *keyword, float *value, double defval);
181 void rdhdi_c (int tno, Const char *keyword, int *value, int defval);
182 void rdhdl_c (int tno, Const char *keyword, int8 *value, int8 defval);
183 void rdhdd_c (int tno, Const char *keyword, double *value, double defval);
184 void rdhdc_c (int tno, Const char *keyword, float *value, Const float *defval);
185 void rdhda_c (int tno, Const char *keyword, char *value, Const char *defval, int len);
186 void hdcopy_c (int tin, int tout, Const char *keyword);
187 int hdprsnt_c (int tno, Const char *keyword);
188 void hdprobe_c (int tno, Const char *keyword, char *descr, size_t length, char *type, int *n);
189 
190 /* dio.c */
191 
192 void ddelete_c (char *path, int *iostat);
193 void dtrans_c (char *inpath, char *outpath, int *iostat);
194 void dmkdir_c (char *path, int *iostat);
195 void drmdir_c (char *path, int *iostat);
196 void dopen_c (int *fd, char *name, char *status, off_t *size, int *iostat);
197 void dclose_c (int fd, int *iostat);
198 void dread_c (int fd, char *buffer, off_t offset, size_t length, int *iostat);
199 void dwrite_c (int fd, char *buffer, off_t offset, size_t length, int *iostat);
200 void dwait_c (int fd, int *iostat);
201 int dexpand_c (char *tmplte, char *output, int length);
202 void dopendir_c (char **contxt, char *path);
203 void dclosedir_c (char *contxt);
204 void dreaddir_c (char *contxt, char *path, int length);
205 
206 /* uvio.c */
207 
208 void uvopen_c (int *tno, Const char *name, Const char *status);
209 void uvclose_c (int tno);
210 void uvflush_c (int tno);
211 void uvnext_c (int tno);
212 void uvrewind_c (int tno);
213 int uvdim_c (int tno);
214 void uvcopyvr_c (int tin, int tout);
215 int uvupdate_c (int tno);
216 void uvvarini_c (int tno, int *vhan);
217 void uvvarset_c (int vhan, Const char *var);
218 void uvvarcpy_c (int vhan, int tout);
219 int uvvarupd_c (int vhan);
220 void uvrdvr_c (int tno, int type, Const char *var, char *data, const char *def, int n);
221 void uvgetvr_c (int tno, int type, Const char *var, char *data, int n);
222 void uvprobvr_c (int tno, Const char *var, char *type, int *length, int *updated);
223 void uvputvr_c (int tno, int type, Const char *var, Const char *data, int n);
224 void uvtrack_c (int tno, Const char *name, Const char *switches);
225 int uvscan_c (int tno, Const char *var);
226 void uvwrite_c (int tno, Const double *preamble, Const float *data, Const int *flags, int n);
227 void uvwwrite_c (int tno, Const float *data, Const int *flags, int n);
228 void uvsela_c (int tno, Const char *object, Const char *string, int datasel);
229 void uvselect_c (int tno, Const char *object, double p1, double p2, int datasel);
230 void uvset_c (int tno, Const char *object, Const char *type, int n, double p1, double p2, double p3);
231 void uvread_c (int tno, double *preamble, float *data, int *flags, int n, int *nread);
232 void uvwread_c (int tno, float *data, int *flags, int n, int *nread);
233 void uvflgwr_c (int tno, Const int *flags);
234 void uvwflgwr_c (int tno, Const int *flags);
235 void uvinfo_c (int tno, Const char *object, double *data);
236 int uvchkshadow_c (int tno, double diameter_meters);
237 
238 /* Macros defined in uvio.c */
239 
240 #define uvputvra_c(tno,name,value) \
241  uvputvr_c(tno,H_BYTE,name,value,strlen(value))
242 #define uvputvrj_c(tno,name,value,n) \
243  uvputvr_c(tno,H_INT2,name,(char *)(value),n)
244 #define uvputvri_c(tno,name,value,n) \
245  uvputvr_c(tno,H_INT,name,(char *)(value),n)
246 #define uvputvrr_c(tno,name,value,n) \
247  uvputvr_c(tno,H_REAL,name,(char *)(value),n)
248 #define uvputvrd_c(tno,name,value,n) \
249  uvputvr_c(tno,H_DBLE,name,(char *)(value),n)
250 #define uvputvrc_c(tno,name,value,n) \
251  uvputvr_c(tno,H_CMPLX,name,(char *)(value),n)
252 
253 #define uvgetvra_c(tno,name,value,n) \
254  uvgetvr_c(tno,H_BYTE,name,value,n)
255 #define uvgetvrj_c(tno,name,value,n) \
256  uvgetvr_c(tno,H_INT2,name,(char *)(value),n)
257 #define uvgetvri_c(tno,name,value,n) \
258  uvgetvr_c(tno,H_INT,name,(char *)(value),n)
259 #define uvgetvrr_c(tno,name,value,n) \
260  uvgetvr_c(tno,H_REAL,name,(char *)(value),n)
261 #define uvgetvrd_c(tno,name,value,n) \
262  uvgetvr_c(tno,H_DBLE,name,(char *)(value),n)
263 #define uvgetvrc_c(tno,name,value,n) \
264  uvgetvr_c(tno,H_CMPLX,name,(char *)(value),n)
265 
266 #define uvrdvra_c(tno,name,data,def,len) \
267  uvrdvr_c(tno,H_BYTE,name,data,def,len)
268 #define uvrdvri_c(tno,name,data,def) \
269  uvrdvr_c(tno,H_INT,name,(char *)(data),(char *)(def),1)
270 #define uvrdvrr_c(tno,name,data,def) \
271  uvrdvr_c(tno,H_REAL,name,(char *)(data),(char *)(def),1)
272 #define uvrdvrd_c(tno,name,data,def) \
273  uvrdvr_c(tno,H_DBLE,name,(char *)(data),(char *)(def),1)
274 #define uvrdvrc_c(tno,name,data,def) \
275  uvrdvr_c(tno,H_CMPLX,name,(char *)(data),(char *)(def),1)
276 
277 /* xyio.c */
278 
279 void xyopen_c (int *tno, Const char *name, Const char *status, int naxis, int axes[]);
280 void xyflush_c (int tno);
281 void xyclose_c (int tno);
282 int xydim_c (int tno);
283 void xyread_c (int tno, int index, float *array);
284 void xywrite_c (int tno, int index, Const float *array);
285 void xymkrd_c (int tno, int index, int *runs, int n, int *nread);
286 void xymkwr_c (int tno, int index, Const int *runs, int n);
287 void xyflgwr_c (int tno, int index, Const int *flags);
288 void xyflgrd_c (int tno, int index, int *flags);
289 void xysetpl_c (int tno, int naxis, Const int *axes);
290 
291 /* maskio.c */
292 char *mkopen_c (int tno, char *name, char *status);
293 void mkclose_c (char *handle);
294 int mkread_c (char *handle, int mode, int *flags, off_t offset, int n, int nsize);
295 void mkwrite_c (char *handle, int mode, Const int *flags, off_t offset, int n, int nsize);
296 void mkflush_c (char *handle);
297 void setmaski_c(int *mask, Const int *masks);
298 void getmaski_c(Const int mask, int *masks);
299 
300 
301 /* xyzio.c */
302 
303 void xyzopen_c (int *tno, Const char *name, Const char *status, int *naxis, int axlen[]);
304 void xyzclose_c (int tno);
305 void xyzflush_c (int tno);
306 void xyzsetup_c (int tno, Const char *subcube, Const int blc[], Const int trc[], int viraxlen[], long vircubesize[]);
307 void xyzs2c_c (int tno, long subcubenr, int coords[]);
308 void xyzc2s_c (int tno, Const int coords[], long *subcubenr);
309 void xyzread_c (int tno, Const int coords[], float *data, int *mask, int *ndata);
310 void xyzpixrd_c (int tno, long pixelnr, float *data, int *mask);
311 void xyzprfrd_c (int tno, int profilenr, float *data, int *mask, int *ndata);
312 void xyzplnrd_c (int tno, int planenr, float *data, int *mask, int *ndata);
313 void xyzwrite_c (int tno, Const int coords[], Const float *data, Const int *mask, Const int *ndata);
314 void xyzpixwr_c (int tno, long pixelnr, Const float *data, Const int *mask);
315 void xyzprfwr_c (int tno, int profilenr, Const float *data, Const int *mask, Const int *ndata);
316 void xyzplnwr_c (int tno, int planenr, Const float *data, Const int *mask, Const int *ndata);
317 void xyzmkbuf_c (void);
318 void xyzdim_c (int tno, int *naxis, int *dimsub);
319 int xyzpix_c (int tno, int dims);
320 
321 /* bug.c */
322 
323 char bugseverity_c(void);
324 char *bugmessage_c(void);
325 void bughandler_c(void (*handler)(char s, Const char *m));
326 void bugrecover_c(void (*cl)(void));
327 void buglabel_c (Const char *name);
328 void bugno_c (char s, int n);
329 char *errmsg_c (int n);
330 void bug_c (char s, Const char *m);
331 void bugv_c (char s, Const char *m, ...);
332 
333 /* scrio.c */
334 
335 void scropen_c (int *handle);
336 void scrclose_c (int handle);
337 void scrread_c (int handle, float *buffer, off_t offset, size_t length);
338 void scrwrite_c (int handle, Const float *buffer, off_t offset, size_t length);
339 void scrrecsz_c (int handle, size_t recsize);
340 
341 /* tabio.c */
342 
343 void tabopen_c (int *tno, Const char *name, Const char *status, int *ncol, int *nrow);
344 void tabclose_c (int tno);
345 void tabsetr_c (int tno, int row);
346 void tabfmtc_c (int tno, int col, char *fmt);
347 void tabcmt_c (int tno, char *comment);
348 void tabwcr_c (int tno, int col, float value);
349 void tabwcd_c (int tno, int col, double value);
350 void tabwci_c (int tno, int col, int value);
351 void tabwca_c (int tno, int col, char *value);
352 void tabgetr_c (int tno, int row, float *data);
353 void tabgetd_c (int tno, int row, double *data);
354 void tabgeta_c (int tno, int row, char *data);
355 
356 
357 /* key.c */
358 
359 void keyinit_c (Const char *task);
360 void keyput_c (Const char *task, char *string);
361 void keyini_c (int argc, char *argv[]);
362 void keyfin_c (void);
363 int keyprsnt_c (Const char *keyword);
364 void keya_c (Const char *keyword, char *value, Const char *keydef);
365 void keyf_c (Const char *keyword, char *value, Const char *keydef);
366 void keyd_c (Const char *keyword, double *value, Const double keydef);
367 void keyr_c (Const char *keyword, float *value, Const float keydef);
368 void keyi_c (Const char *keyword, int *value, Const int keydef);
369 void keyl_c (Const char *keyword, int *value, Const int keydef);
370 void mkeyd_c (Const char *keyword, double value[], Const int nmax, int *n);
371 void mkeyr_c (Const char *keyword, float value[], Const int nmax, int *n);
372 void mkeyi_c (Const char *keyword, int value[], Const int nmax, int *n);
373 
374 /* mir.c */
375 void mirInit_c(const char *f_name);
376 void mirClose_c(void);
377 void inWrite_c(const int conid, const int icocd, const int traid, const int inhid, const int ints, const int itq, const float az, const float el, const float ha, const int iut, const int iref_time, const double dhrs, const float vc, const int ivctype, const double sx, const double sy, const double sz, const float rinteg, const int proid, const int souid, const int isource, const int ipos, const float offx, const float offy, const int iofftype, const int ira, const int idec, const double rar, const double decr, const float epoch, const float sflux, const float size);
378 void blWrite_c(const int blhid, const int inhid, const int isb, const int ipol, const float pa, const int iaq, const int ibq, const int icq, const int ioq, const int irec, const int iffc, const float u, const float v, const float w, const float prbl, const float angres, const float vis, const float coh, const float sigcoh, const float csnr, const float vflux, const float cnoise, const double avedhrs, const float ampav, const float phaave, const float tpvar, const int blsid, const int itel1, const int itel2, const int iblcd, const float ble, const float bln, const float blu, const int soid);
379 void spWrite_c(const int sphid, const int blhid, const int inhid, const int igq, const int ipq, const int iband, const int ipstate, const float tau0, const double vel, const float vres, const int ivtype, const double fsky, const float fres, const float tssb, const float integ, const float wt, const int itaper, const float snoise, const int nch, const int nrec, const int dataoff, const int linid, const int itrans, const double rfreq, const int pasid, const int gaiidamp, const int gaiidpha, const int flcid, const int atmid);
380 void codeWrite_c(const char *v_name, const int icode, const char *code, const int ncode);
381 void visWrite_c(const float *re, const float *im, const int numvis, const int startvis, int *nbytes);
382 
383 /* interface.c */
384 void pad(char *string, int length);
385 char *zterm(char *string, int length);
386 
387 #if defined(__cplusplus)
388 }
389 #endif
390 
391 #endif /* MIR_MIRIAD_H */
void scrrecsz_c(int handle, size_t recsize)
void wrhdc_c(int tno, Const char *keyword, Const float *value)
void xyzflush_c(int tno)
void tabopen_c(int *tno, Const char *name, Const char *status, int *ncol, int *nrow)
char bugseverity_c(void)
void uvvarini_c(int tno, int *vhan)
void hisclose_c(int tno)
void xyflgwr_c(int tno, int index, Const int *flags)
void uvopen_c(int *tno, Const char *name, Const char *status)
char * mkopen_c(int tno, char *name, char *status)
void xymkwr_c(int tno, int index, Const int *runs, int n)
void tabwcd_c(int tno, int col, double value)
void uvvarcpy_c(int vhan, int tout)
void bugno_c(char s, int n)
void bugrecover_c(void(*cl)(void))
void uvvarset_c(int vhan, Const char *var)
LatticeExprNode mask(const LatticeExprNode &expr)
This function returns the mask of the given expression.
void bug_c(char s, Const char *m)
void dwait_c(int fd, int *iostat)
void uvselect_c(int tno, Const char *object, double p1, double p2, int datasel)
void hdaccess_c(int ihandle, int *iostat)
void keyf_c(Const char *keyword, char *value, Const char *keydef)
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
Definition: ExprNode.h:1886
void spWrite_c(const int sphid, const int blhid, const int inhid, const int igq, const int ipq, const int iband, const int ipstate, const float tau0, const double vel, const float vres, const int ivtype, const double fsky, const float fres, const float tssb, const float integ, const float wt, const int itaper, const float snoise, const int nch, const int nrec, const int dataoff, const int linid, const int itrans, const double rfreq, const int pasid, const int gaiidamp, const int gaiidpha, const int flcid, const int atmid)
void hdelete_c(int tno, Const char *keyword, int *iostat)
void uvputvr_c(int tno, int type, Const char *var, Const char *data, int n)
void xyflgrd_c(int tno, int index, int *flags)
void keyfin_c(void)
void blWrite_c(const int blhid, const int inhid, const int isb, const int ipol, const float pa, const int iaq, const int ibq, const int icq, const int ioq, const int irec, const int iffc, const float u, const float v, const float w, const float prbl, const float angres, const float vis, const float coh, const float sigcoh, const float csnr, const float vflux, const float cnoise, const double avedhrs, const float ampav, const float phaave, const float tpvar, const int blsid, const int itel1, const int itel2, const int iblcd, const float ble, const float bln, const float blu, const int soid)
int uvchkshadow_c(int tno, double diameter_meters)
void hflush_c(int tno, int *iostat)
void hmode_c(int tno, char *mode)
void buglabel_c(Const char *name)
void xyzpixrd_c(int tno, long pixelnr, float *data, int *mask)
void tabcmt_c(int tno, char *comment)
void xyzopen_c(int *tno, Const char *name, Const char *status, int *naxis, int axlen[])
void uvrdvr_c(int tno, int type, Const char *var, char *data, const char *def, int n)
void xyflush_c(int tno)
void tabwci_c(int tno, int col, int value)
void uvinfo_c(int tno, Const char *object, double *data)
virtual casacore::String type() const
Implements RegionShape::type.
Definition: RegionShapes.h:548
void hisread_c(int tno, char *text, size_t length, int *eof)
off_t htell_c(int ihandle)
void uvrewind_c(int tno)
void dopen_c(int *fd, char *name, char *status, off_t *size, int *iostat)
void tabgetd_c(int tno, int row, double *data)
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
void hisopen_c(int tno, Const char *status)
void xywrite_c(int tno, int index, Const float *array)
void mkeyr_c(Const char *keyword, float value[], Const int nmax, int *n)
void uvflgwr_c(int tno, Const int *flags)
void visWrite_c(const float *re, const float *im, const int numvis, const int startvis, int *nbytes)
void keyl_c(Const char *keyword, int *value, Const int keydef)
size_t size() const
void xyzread_c(int tno, Const int coords[], float *data, int *mask, int *ndata)
void rdhdi_c(int tno, Const char *keyword, int *value, int defval)
void tabgeta_c(int tno, int row, char *data)
void hopen_c(int *tno, Const char *name, Const char *status, int *iostat)
void inWrite_c(const int conid, const int icocd, const int traid, const int inhid, const int ints, const int itq, const float az, const float el, const float ha, const int iut, const int iref_time, const double dhrs, const float vc, const int ivctype, const double sx, const double sy, const double sz, const float rinteg, const int proid, const int souid, const int isource, const int ipos, const float offx, const float offy, const int iofftype, const int ira, const int idec, const double rar, const double decr, const float epoch, const float sflux, const float size)
void uvgetvr_c(int tno, int type, Const char *var, char *data, int n)
void xyzplnwr_c(int tno, int planenr, Const float *data, Const int *mask, Const int *ndata)
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
Definition: PlotData.h:48
char * errmsg_c(int n)
void xymkrd_c(int tno, int index, int *runs, int n, int *nread)
void uvflush_c(int tno)
void ddelete_c(char *path, int *iostat)
void uvtrack_c(int tno, Const char *name, Const char *switches)
void uvset_c(int tno, Const char *object, Const char *type, int n, double p1, double p2, double p3)
void tabgetr_c(int tno, int row, float *data)
void mkeyi_c(Const char *keyword, int value[], Const int nmax, int *n)
int hdprsnt_c(int tno, Const char *keyword)
void mkflush_c(char *handle)
void tabfmtc_c(int tno, int col, char *fmt)
int keyprsnt_c(Const char *keyword)
void setmaski_c(int *mask, Const int *masks)
void keyi_c(Const char *keyword, int *value, Const int keydef)
void keyput_c(Const char *task, char *string)
LatticeExprNode pa(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds 180/pi*atan2(left,right)/2.
void wrhdi_c(int tno, Const char *keyword, int value)
#define Const
Definition: miriad.h:64
void uvprobvr_c(int tno, Const char *var, char *type, int *length, int *updated)
void dwrite_c(int fd, char *buffer, off_t offset, size_t length, int *iostat)
void scrclose_c(int handle)
void mkeyd_c(Const char *keyword, double value[], Const int nmax, int *n)
void hwritea_c(int ihandle, Const char *line, size_t length, int *iostat)
void xyzprfwr_c(int tno, int profilenr, Const float *data, Const int *mask, Const int *ndata)
int uvdim_c(int tno)
void wrhda_c(int tno, Const char *keyword, Const char *value)
void wrhdl_c(int tno, Const char *keyword, int8 value)
long long int int8
Definition: sysdep.h:84
int mkread_c(char *handle, int mode, int *flags, off_t offset, int n, int nsize)
LatticeExprNode length(const LatticeExprNode &expr, const LatticeExprNode &axis)
2-argument function to get the length of an axis.
void hiswrite_c(int tno, Const char *text)
void hrm_c(int tno)
std::string path(const std::string &name)
void xyzpixwr_c(int tno, long pixelnr, Const float *data, Const int *mask)
void uvcopyvr_c(int tin, int tout)
void uvwwrite_c(int tno, Const float *data, Const int *flags, int n)
void dtrans_c(char *inpath, char *outpath, int *iostat)
void xyzwrite_c(int tno, Const int coords[], Const float *data, Const int *mask, Const int *ndata)
void xyzc2s_c(int tno, Const int coords[], long *subcubenr)
int uvupdate_c(int tno)
void bughandler_c(void(*handler)(char s, Const char *m))
void wrhdd_c(int tno, Const char *keyword, double value)
char * zterm(char *string, int length)
void uvsela_c(int tno, Const char *object, Const char *string, int datasel)
void xyzclose_c(int tno)
void haccess_c(int tno, int *ihandle, Const char *keyword, Const char *status, int *iostat)
void dread_c(int fd, char *buffer, off_t offset, size_t length, int *iostat)
void xyzsetup_c(int tno, Const char *subcube, Const int blc[], Const int trc[], int viraxlen[], long vircubesize[])
void tabclose_c(int tno)
void dclosedir_c(char *contxt)
void hseek_c(int ihandle, off_t offset)
void mkwrite_c(char *handle, int mode, Const int *flags, off_t offset, int n, int nsize)
void habort_c(void)
void dopendir_c(char **contxt, char *path)
void uvnext_c(int tno)
int xydim_c(int tno)
void xyclose_c(int tno)
void wrhdr_c(int tno, Const char *keyword, double value)
void rdhdd_c(int tno, Const char *keyword, double *value, double defval)
void keyini_c(int argc, char *argv[])
void xyzprfrd_c(int tno, int profilenr, float *data, int *mask, int *ndata)
void xyread_c(int tno, int index, float *array)
void uvclose_c(int tno)
void hreada_c(int ihandle, char *line, size_t length, int *iostat)
off_t hsize_c(int ihandle)
void hclose_c(int tno)
void mirInit_c(const char *f_name)
char Void
Definition: sysdep.h:74
void tabwca_c(int tno, int col, char *value)
void uvwread_c(int tno, float *data, int *flags, int n, int *nread)
void keyinit_c(Const char *task)
void tabwcr_c(int tno, int col, float value)
void rdhdc_c(int tno, Const char *keyword, float *value, Const float *defval)
void scrread_c(int handle, float *buffer, off_t offset, size_t length)
void rdhdl_c(int tno, Const char *keyword, int8 *value, int8 defval)
void keya_c(Const char *keyword, char *value, Const char *keydef)
void hdprobe_c(int tno, Const char *keyword, char *descr, size_t length, char *type, int *n)
void scrwrite_c(int handle, Const float *buffer, off_t offset, size_t length)
int uvscan_c(int tno, Const char *var)
void mirClose_c(void)
void xysetpl_c(int tno, int naxis, Const int *axes)
void pad(char *string, int length)
void rdhda_c(int tno, Const char *keyword, char *value, Const char *defval, int len)
void mkclose_c(char *handle)
void getmaski_c(Const int mask, int *masks)
void xyzs2c_c(int tno, long subcubenr, int coords[])
int dexpand_c(char *tmplte, char *output, int length)
void hio_c(int ihandle, int dowrite, int type, char *buf, off_t offset, size_t length, int *iostat)
void drmdir_c(char *path, int *iostat)
void dmkdir_c(char *path, int *iostat)
void rdhdr_c(int tno, Const char *keyword, float *value, double defval)
void codeWrite_c(const char *v_name, const int icode, const char *code, const int ncode)
void hdcopy_c(int tin, int tout, Const char *keyword)
void tabsetr_c(int tno, int row)
void xyopen_c(int *tno, Const char *name, Const char *status, int naxis, int axes[])
void keyr_c(Const char *keyword, float *value, Const float keydef)
int xyzpix_c(int tno, int dims)
int hexists_c(int tno, Const char *keyword)
void xyzdim_c(int tno, int *naxis, int *dimsub)
void dclose_c(int fd, int *iostat)
void bugv_c(char s, Const char *m,...)
char * bugmessage_c(void)
void uvwflgwr_c(int tno, Const int *flags)
void uvread_c(int tno, double *preamble, float *data, int *flags, int n, int *nread)
void uvwrite_c(int tno, Const double *preamble, Const float *data, Const int *flags, int n)
int uvvarupd_c(int vhan)
void xyzmkbuf_c(void)
void scropen_c(int *handle)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void dreaddir_c(char *contxt, char *path, int length)
void keyd_c(Const char *keyword, double *value, Const double keydef)
void xyzplnrd_c(int tno, int planenr, float *data, int *mask, int *ndata)