Open source Very Long Baseline Interferometry
OpenVLBI
Functions

Functions

DLL_EXPORT void vlbi_set_correlation_order (void *ctx, int order)
 Set the correlation order the current OpenVLBI context. More...
 
DLL_EXPORT int vlbi_get_baselines (void *ctx, vlbi_baseline **baselines)
 List all baselines of the current OpenVLBI context. More...
 
DLL_EXPORT void vlbi_free_baselines (vlbi_baseline **baselines, int num_baselines)
 Free a vlbi_baseline object previously allocated by vlbi_get_baselines. More...
 
DLL_EXPORT void vlbi_set_baseline_buffer (void *ctx, const char **nodes, complex_t *buffer, int len)
 Fill the buffer of a single baseline with complex visibility data. This function locks this baeline and the data passed here will overwrite the correlated visibilities from its nodes. More...
 
DLL_EXPORT dsp_stream_p vlbi_get_baseline_stream (void *ctx, const char **nodes)
 Obtain the baseline dsp_stream structure containing the complex visibility data. More...
 
DLL_EXPORT void vlbi_unlock_baseline (void *ctx, const char **nodes)
 Unlock the baseline and get visibility from its nodes correlations. More...
 
DLL_EXPORT void vlbi_set_baseline_stream (void *ctx, const char **nodes, dsp_stream_p stream)
 Set the baseline dsp_stream structure containing the complex visibility data. This function locks this baeline and the data passed here will overwrite the correlated visibilities from its nodes. More...
 
DLL_EXPORT void vlbi_set_location (void *ctx, double lat, double lon, double el)
 Set the location of the reference station. More...
 
DLL_EXPORT double vlbi_get_offset (vlbi_context ctx, double J2000Time, const char *node, double Ra, double Dec, double Distance)
 Get the offset of a single node to the farest node to the target. More...
 

Detailed Description

Function Documentation

◆ vlbi_free_baselines()

DLL_EXPORT void vlbi_free_baselines ( vlbi_baseline **  baselines,
int  num_baselines 
)
Parameters
baselinesThe baselines array pointer
num_baselinesThe number of elements into the baselines object

◆ vlbi_get_baseline_stream()

DLL_EXPORT dsp_stream_p vlbi_get_baseline_stream ( void *  ctx,
const char **  nodes 
)
Parameters
ctxThe OpenVLBI context
nodesThe names of the node - the array size must be the same as the correlation order
Returns
The dsp_stream structure pointer containing the visibility data

◆ vlbi_get_baselines()

DLL_EXPORT int vlbi_get_baselines ( void *  ctx,
vlbi_baseline **  baselines 
)
Parameters
ctxThe OpenVLBI context
baselinesThe baselines array pointer to be filled
Returns
the number of baselines in the current context

◆ vlbi_get_offset()

DLL_EXPORT double vlbi_get_offset ( vlbi_context  ctx,
double  J2000Time,
const char *  node,
double  Ra,
double  Dec,
double  Distance 
)
Parameters
ctxThe OpenVLBI context
J2000TimeThe time of the calculation
nodeThe name of the node
RaThe right ascension coordinate
DecThe declination coordinate
DistanceThe distance from the object
Returns
The offset calculated for the node to the farest one from the object

◆ vlbi_set_baseline_buffer()

DLL_EXPORT void vlbi_set_baseline_buffer ( void *  ctx,
const char **  nodes,
complex_t *  buffer,
int  len 
)
Parameters
ctxThe OpenVLBI context
nodesThe names of the node - the array size must be the same as the correlation order
bufferThe buffer with complex complex visibility data
lenThe length of the buffer

◆ vlbi_set_baseline_stream()

DLL_EXPORT void vlbi_set_baseline_stream ( void *  ctx,
const char **  nodes,
dsp_stream_p  stream 
)
Parameters
ctxThe OpenVLBI context
nodesThe names of the node - the array size must be the same as the correlation order
streamThe dsp_stream structure pointer containing the visibility data

◆ vlbi_set_correlation_order()

DLL_EXPORT void vlbi_set_correlation_order ( void *  ctx,
int  order 
)
Parameters
ctxThe OpenVLBI context
orderThe correlation order - number of nodes to be correlated into each single baseline

◆ vlbi_set_location()

DLL_EXPORT void vlbi_set_location ( void *  ctx,
double  lat,
double  lon,
double  el 
)
Parameters
ctxThe OpenVLBI context
latThe latitude of the station
lonThe longitude of the station
elThe elevation of the station

◆ vlbi_unlock_baseline()

DLL_EXPORT void vlbi_unlock_baseline ( void *  ctx,
const char **  nodes 
)
Parameters
ctxThe OpenVLBI context
nodesThe names of the node - the array size must be the same as the correlation order