Open source Very Long Baseline Interferometry
OpenVLBI
Functions

Functions

DLL_EXPORT int vlbi_get_baselines (void *ctx, vlbi_baseline **baselines)
 List all baselines of the current OpenVLBI context. More...
 
DLL_EXPORT void vlbi_set_baseline_buffer (void *ctx, const char *node1, const char *node2, 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 *node1, const char *node2)
 Obtain the baseline dsp_stream structure containing the complex visibility data. More...
 
DLL_EXPORT void vlbi_unlock_baseline (void *ctx, const char *node1, const char *node2)
 Unlock the baseline and get visibility from its nodes correlations. More...
 
DLL_EXPORT void vlbi_set_baseline_stream (void *ctx, const char *node1, const char *node2, 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 void vlbi_get_offsets (vlbi_context ctx, double J2000Time, const char *node1, const char *node2, double Ra, double Dec, double *offset1, double *offset2)
 Get the offsets of a single baseline nodes to the farest node to the target. More...
 

Detailed Description

Function Documentation

◆ vlbi_get_baseline_stream()

DLL_EXPORT dsp_stream_p vlbi_get_baseline_stream ( void *  ctx,
const char *  node1,
const char *  node2 
)
Parameters
ctxThe OpenVLBI context
node1The name of the first node
node2The name of the second node
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_offsets()

DLL_EXPORT void vlbi_get_offsets ( vlbi_context  ctx,
double  J2000Time,
const char *  node1,
const char *  node2,
double  Ra,
double  Dec,
double *  offset1,
double *  offset2 
)
Parameters
ctxThe OpenVLBI context
J2000TimeThe time of the calculation
node1The name of the first node
node2The name of the second node
RaThe right ascension coordinate
DecThe declination coordinate
offset1The offset calculated for the first node to the farest one
offset2The offset calculated for the second node to the farest one

◆ vlbi_set_baseline_buffer()

DLL_EXPORT void vlbi_set_baseline_buffer ( void *  ctx,
const char *  node1,
const char *  node2,
complex_t *  buffer,
int  len 
)
Parameters
ctxThe OpenVLBI context
node1The name of the first node
node2The name of the second node
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 *  node1,
const char *  node2,
dsp_stream_p  stream 
)
Parameters
ctxThe OpenVLBI context
node1The name of the first node
node2The name of the second node
streamThe dsp_stream structure pointer containing the visibility data

◆ 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 *  node1,
const char *  node2 
)
Parameters
ctxThe OpenVLBI context
node1The name of the first node
node2The name of the second node