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
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046 #ifndef _GRID_H
00047 #define _GRID_H
00048
00049 #include <lal/LALStdlib.h>
00050
00051 #ifdef __cplusplus
00052 extern "C" {
00053 #endif
00054
00055 NRCSID( GRIDH, "$Id: Grid.h,v 1.3 2007/06/08 14:41:52 bema Exp $" );
00056
00057
00058
00059
00060 #define GRIDH_ENUL 1
00061 #define GRIDH_EOUT 2
00062 #define GRIDH_EMEM 3
00063
00064 #define GRIDH_MSGENUL "Unexpected null pointer in arguments"
00065 #define GRIDH_MSGEOUT "Output handle points to a non-null pointer"
00066 #define GRIDH_MSGEMEM "Memory allocation error"
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129 typedef struct tagINT2Grid {
00130 CHAR name[LALNameLength];
00131 LALUnit sampleUnits;
00132 LALUnit *dimUnits;
00133 REAL8Vector *offset;
00134 REAL8Vector *interval;
00135 INT2Array *data;
00136 } INT2Grid;
00137
00138 typedef struct tagINT4Grid {
00139 CHAR name[LALNameLength];
00140 LALUnit sampleUnits;
00141 LALUnit *dimUnits;
00142 REAL8Vector *offset;
00143 REAL8Vector *interval;
00144 INT4Array *data;
00145 } INT4Grid;
00146
00147 typedef struct tagINT8Grid {
00148 CHAR name[LALNameLength];
00149 LALUnit sampleUnits;
00150 LALUnit *dimUnits;
00151 REAL8Vector *offset;
00152 REAL8Vector *interval;
00153 INT8Array *data;
00154 } INT8Grid;
00155
00156 typedef struct tagUINT2Grid {
00157 CHAR name[LALNameLength];
00158 LALUnit sampleUnits;
00159 LALUnit *dimUnits;
00160 REAL8Vector *offset;
00161 REAL8Vector *interval;
00162 UINT2Array *data;
00163 } UINT2Grid;
00164
00165 typedef struct tagUINT4Grid {
00166 CHAR name[LALNameLength];
00167 LALUnit sampleUnits;
00168 LALUnit *dimUnits;
00169 REAL8Vector *offset;
00170 REAL8Vector *interval;
00171 UINT4Array *data;
00172 } UINT4Grid;
00173
00174 typedef struct tagUINT8Grid {
00175 CHAR name[LALNameLength];
00176 LALUnit sampleUnits;
00177 LALUnit *dimUnits;
00178 REAL8Vector *offset;
00179 REAL8Vector *interval;
00180 UINT8Array *data;
00181 } UINT8Grid;
00182
00183 typedef struct tagREAL4Grid {
00184 CHAR name[LALNameLength];
00185 LALUnit sampleUnits;
00186 LALUnit *dimUnits;
00187 REAL8Vector *offset;
00188 REAL8Vector *interval;
00189 REAL4Array *data;
00190 } REAL4Grid;
00191
00192 typedef struct tagREAL8Grid {
00193 CHAR name[LALNameLength];
00194 LALUnit sampleUnits;
00195 LALUnit *dimUnits;
00196 REAL8Vector *offset;
00197 REAL8Vector *interval;
00198 REAL8Array *data;
00199 } REAL8Grid;
00200
00201 typedef struct tagCOMPLEX8Grid {
00202 CHAR name[LALNameLength];
00203 LALUnit sampleUnits;
00204 LALUnit *dimUnits;
00205 REAL8Vector *offset;
00206 REAL8Vector *interval;
00207 COMPLEX8Array *data;
00208 } COMPLEX8Grid;
00209
00210 typedef struct tagCOMPLEX16Grid {
00211 CHAR name[LALNameLength];
00212 LALUnit sampleUnits;
00213 LALUnit *dimUnits;
00214 REAL8Vector *offset;
00215 REAL8Vector *interval;
00216 COMPLEX16Array *data;
00217 } COMPLEX16Grid;
00218
00219
00220
00221
00222
00223
00224
00225
00226
00227
00228
00229 void
00230 LALI2CreateGrid( LALStatus *status, INT2Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00231
00232 void
00233 LALI4CreateGrid( LALStatus *status, INT4Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00234
00235 void
00236 LALI8CreateGrid( LALStatus *status, INT8Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00237
00238 void
00239 LALU2CreateGrid( LALStatus *status, UINT2Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00240
00241 void
00242 LALU4CreateGrid( LALStatus *status, UINT4Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00243
00244 void
00245 LALU8CreateGrid( LALStatus *status, UINT8Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00246
00247 void
00248 LALSCreateGrid( LALStatus *status, REAL4Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00249
00250 void
00251 LALDCreateGrid( LALStatus *status, REAL8Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00252
00253 void
00254 LALCCreateGrid( LALStatus *status, COMPLEX8Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00255
00256 void
00257 LALZCreateGrid( LALStatus *status, COMPLEX16Grid **grid, UINT4Vector *dimLength, UINT4 dimension );
00258
00259
00260 void
00261 LALI2DestroyGrid( LALStatus *status, INT2Grid **grid );
00262
00263 void
00264 LALI4DestroyGrid( LALStatus *status, INT4Grid **grid );
00265
00266 void
00267 LALI8DestroyGrid( LALStatus *status, INT8Grid **grid );
00268
00269 void
00270 LALU2DestroyGrid( LALStatus *status, UINT2Grid **grid );
00271
00272 void
00273 LALU4DestroyGrid( LALStatus *status, UINT4Grid **grid );
00274
00275 void
00276 LALU8DestroyGrid( LALStatus *status, UINT8Grid **grid );
00277
00278 void
00279 LALSDestroyGrid( LALStatus *status, REAL4Grid **grid );
00280
00281 void
00282 LALDDestroyGrid( LALStatus *status, REAL8Grid **grid );
00283
00284 void
00285 LALCDestroyGrid( LALStatus *status, COMPLEX8Grid **grid );
00286
00287 void
00288 LALZDestroyGrid( LALStatus *status, COMPLEX16Grid **grid );
00289
00290
00291
00292
00293
00294 #ifdef __cplusplus
00295 }
00296 #endif
00297
00298 #endif