https://github.com/RadioAstronomySoftwareGroup/pyuvdata
Tip revision: ae3e84eb61ccca323172c656490b018073c95293 authored by Bryna Hazelton on 25 May 2023, 16:32:56 UTC
update changelog for v2.3.3
update changelog for v2.3.3
Tip revision: ae3e84e
io.h
/************************************************************************/
/* */
/* A general header file for the various file and i/o handling */
/* routines. */
/* */
/* History: */
/* rjs Dark-ages Original version. */
/* rjs 20aug92 Correct "roundup" macro when rounding 0. */
/* rjs 15may96 Moved roundup macro elsewhere. */
/* pjt 28may02 Added H_INT8 */
/* pjt 17jun02 different MIR4 structures? */
/************************************************************************/
/* Binary items start with a sequence to allow routines to blindly determine
how to read them. The "binary_item" is a catch all with only indicates
that the data is binary valued, but does not hint at the format. */
#if !defined(MIR_IO_H)
#define MIR_IO_H
#include "hio.h"
#include <unistd.h>
#define ITEM_HDR_SIZE 4
#if 1
/* MIRIAD3 and below data structures */
extern char binary_item[ITEM_HDR_SIZE],
real_item[ITEM_HDR_SIZE],
int_item[ITEM_HDR_SIZE],
int2_item[ITEM_HDR_SIZE],
int8_item[ITEM_HDR_SIZE],
char_item[ITEM_HDR_SIZE],
dble_item[ITEM_HDR_SIZE],
cmplx_item[ITEM_HDR_SIZE];
#else
/* MIRIAD4 data structures - not finalized on this though */
static char binary_item[ITEM_HDR_SIZE] = {1,0,0,0},
real_item[ITEM_HDR_SIZE] = {1,0,0,H_REAL},
int_item[ITEM_HDR_SIZE] = {1,0,0,H_INT},
int2_item[ITEM_HDR_SIZE] = {1,0,0,H_INT2},
int8_item[ITEM_HDR_SIZE] = {1,0,0,H_INT8},
char_item[ITEM_HDR_SIZE] = {1,0,0,H_BYTE},
dble_item[ITEM_HDR_SIZE] = {1,0,0,H_DBLE},
cmplx_item[ITEM_HDR_SIZE] = {1,0,0,H_CMPLX};
#endif
#endif /* MIR_IO_H */