00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef OBITTYPES_H
00029 #define OBITTYPES_H
00030 #include <glib.h>
00031
00032
00040
00042 #ifndef DG2RAD
00043 #define DG2RAD G_PI / 180.0
00044 #endif
00045
00047 #ifndef RAD2DG
00048 #define RAD2DG 180.0 / G_PI
00049 #endif
00050
00052 #ifndef RAD2AS
00053 #define RAD2AS 3600.0 * RAD2DG
00054 #endif
00055
00057 #ifndef AS2RAD
00058 #define AS2RAD DG2RAD / 3600.0
00059 #endif
00060
00062
00063 typedef gint32 oint;
00064
00065
00066
00067
00068
00071 union ObitInfoListEquiv {
00072 oint itg;
00073 gfloat flt;
00074 gdouble dbl;
00075 };
00076
00077
00083 enum obitIOStatus {
00085 OBIT_Inactive,
00087 OBIT_Defined,
00089 OBIT_Active,
00091 OBIT_Modified,
00093 OBIT_ErrorExist
00094 };
00096 typedef enum obitIOStatus ObitIOStatus;
00097
00103 enum obitIOType {
00105 OBIT_IO_FITS=0,
00107 OBIT_IO_AIPS,
00109 OBIT_IO_MEM,
00111 OBIT_IO_Binary,
00113 OBIT_IO_Text
00114 };
00115
00117 typedef enum obitIOType ObitIOType;
00118
00124 enum obitIOAccess {
00126 OBIT_IO_None,
00128 OBIT_IO_ReadOnly,
00130 OBIT_IO_ReadCal,
00132 OBIT_IO_WriteOnly,
00134 OBIT_IO_ReadWrite
00135 };
00136
00138 typedef enum obitIOAccess ObitIOAccess;
00139
00145 enum obitIOSize {
00147 OBIT_IO_byRow,
00149 OBIT_IO_byPlane
00150 };
00151
00153 typedef enum obitIOSize ObitIOSize;
00154
00159 enum obitIOCode {
00161 OBIT_IO_OK=0,
00163 OBIT_IO_EOF,
00165 OBIT_IO_SpecErr,
00167 OBIT_IO_OpenErr,
00169 OBIT_IO_CloseErr,
00171 OBIT_IO_ReadErr,
00173 OBIT_IO_WriteErr,
00175 OBIT_IO_DeleteErr,
00177 OBIT_IO_NotFoundErr
00178 };
00179
00181 typedef enum obitIOCode ObitIOCode;
00182
00187 enum obitInfoType {
00189 OBIT_byte = 0,
00191 OBIT_short,
00193 OBIT_int,
00195 OBIT_oint,
00197 OBIT_long,
00199 OBIT_ubyte,
00201 OBIT_ushort,
00203 OBIT_uint,
00205 OBIT_ulong,
00207 OBIT_float,
00209 OBIT_double,
00211 OBIT_complex,
00213 OBIT_dcomplex,
00215 OBIT_string,
00217 OBIT_bool,
00219 OBIT_bits
00220 };
00221
00223 typedef enum obitInfoType ObitInfoType;
00224
00225
00226 #endif