WSClean
imaginginterface.h
Go to the documentation of this file.
1 #ifndef IMAGING_INTERFACE_H
2 #define IMAGING_INTERFACE_H
3 
12 #ifndef DCOMPLEX
13 
14 #ifdef __cplusplus
15 #include <complex>
16 #define DCOMPLEX std::complex<double>
17 #else
18 
20 #define DCOMPLEX double complex
21 #endif
22 
23 #endif
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
33 typedef struct
34 {
36  const char* msPath;
42  double pixelScaleX;
44  double pixelScaleY;
47  const char* extraParameters;
49 
53 typedef struct
54 {
56  long dataSize;
57  enum { DATA_TYPE_DOUBLE, DATA_TYPE_COMPLEX_DOUBLE }
58  lhs_data_type,
59  rhs_data_type;
60 
61  /*void (*deinitialize_function)(void* userData);
62  void (*read_function)(void* userData, DCOMPLEX* data, double* weights);
63  void (*write_function)(void* userData, const double* image);
64  void (*operator_A_function)(void* userData, void* dataOut, void* dataIn);
65  void (*operator_At_function)(void* userData, void* dataOut, void* dataIn);*/
66 } imaging_data;
67 
68 #ifdef __cplusplus
69 }
70 #endif
71 
72 #endif
const char * extraParameters
A string containing command line parameters that are passed to WSClean, for example "-weight natural"...
Definition: imaginginterface.h:47
const char * msPath
Path to the measurement set.
Definition: imaginginterface.h:36
long dataSize
Number of visibilities in the set (that are selected).
Definition: imaginginterface.h:56
double pixelScaleY
Vertical size of a pixel in radians.
Definition: imaginginterface.h:44
double pixelScaleX
Horizontal size of a pixel in radians.
Definition: imaginginterface.h:42
int imageHeight
Image height in pixels.
Definition: imaginginterface.h:40
Class that defines the image properties.
Definition: imaginginterface.h:33
int imageWidth
Image width in pixels.
Definition: imaginginterface.h:38
Holds information about the visibility data.
Definition: imaginginterface.h:53