Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* Dropped unlzw in favor of using the gzip utility
* Made antenna inclusion/exclusion more robust in lsl.imaging.data.VisibilityDataSet.get_antenna_subset()
* Added support for "long (ionospheric) product names"
* Added support for triggered voltage buffer dump files from OVRO-LWA with lsl.reader.ovro
* Added support for triggered voltage buffer dump files from OVRO-LWA in lsl.reader.ldp

2.1.7
* Updated the LWA-SV SSMIF to 2022/11/15
Expand Down
Binary file added lsl/data/tests/ovro-test.dat
Binary file not shown.
22 changes: 14 additions & 8 deletions lsl/reader/gofast.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ short int tbw4LUT[256][2];
float tbnLUT[256];
float drxLUT[256][2];
float tbfLUT[256][2];
float ovroLUT[256][2];

static void initLWALUTs(void) {
// Look-up table inialization function from the VDIFIO library
Expand All @@ -63,7 +64,7 @@ static void initLWALUTs(void) {
tbnLUT[i] -= ((i&128)<<1);
}

// DRX & TBF
// DRX & TBF & OVRO
for(i=0; i<256; i++) {
for(j=0; j<2; j++) {
t = (i >> 4*(1-j)) & 15;
Expand All @@ -72,6 +73,9 @@ static void initLWALUTs(void) {

tbfLUT[i][j] = t;
tbfLUT[i][j] -= ((t&8)<<1);

ovroLUT[i][j] = t;
ovroLUT[i][j] -= ((t&8)<<1);
}
}
}
Expand All @@ -82,13 +86,14 @@ static void initLWALUTs(void) {
*/

static PyMethodDef GoFastMethods[] = {
{"read_tbw", (PyCFunction) read_tbw, METH_VARARGS, read_tbw_doc },
{"read_tbn", (PyCFunction) read_tbn, METH_VARARGS, read_tbn_doc },
{"read_drx", (PyCFunction) read_drx, METH_VARARGS, read_drx_doc },
{"read_drspec", (PyCFunction) read_drspec, METH_VARARGS, read_drspec_doc},
{"read_vdif", (PyCFunction) read_vdif, METH_VARARGS|METH_KEYWORDS, read_vdif_doc },
{"read_tbf", (PyCFunction) read_tbf, METH_VARARGS, read_tbf_doc },
{"read_cor", (PyCFunction) read_cor, METH_VARARGS, read_cor_doc },
{"read_tbw", (PyCFunction) read_tbw, METH_VARARGS, read_tbw_doc },
{"read_tbn", (PyCFunction) read_tbn, METH_VARARGS, read_tbn_doc },
{"read_drx", (PyCFunction) read_drx, METH_VARARGS, read_drx_doc },
{"read_drspec", (PyCFunction) read_drspec, METH_VARARGS, read_drspec_doc },
{"read_vdif", (PyCFunction) read_vdif, METH_VARARGS|METH_KEYWORDS, read_vdif_doc },
{"read_tbf", (PyCFunction) read_tbf, METH_VARARGS, read_tbf_doc },
{"read_cor", (PyCFunction) read_cor, METH_VARARGS, read_cor_doc },
{"read_ovro_spec", (PyCFunction) read_ovro_spec, METH_VARARGS, read_ovro_spec_doc},
{NULL, NULL, 0, NULL }
};

Expand Down Expand Up @@ -162,6 +167,7 @@ MOD_INIT(_gofast) {
PyList_Append(all, PyString_FromString("read_vdif"));
PyList_Append(all, PyString_FromString("read_tbf"));
PyList_Append(all, PyString_FromString("read_cor"));
PyList_Append(all, PyString_FromString("read_ovro_spec"));
PyList_Append(all, PyString_FromString("SyncError"));
PyList_Append(all, PyString_FromString("EOFError"));
PyList_Append(all, PyString_FromString("NCHAN_COR"));
Expand Down
Loading