Skip to the content.

Data Files

29 Jan 2019 Kazuyuki Takeda


Introduction

Here I discuss the format of the data acquired with Opencore NMR 2. At the time of writing this topic, files with the following extensions are created:

extension description notes
.opd double-precision data (binary) little endian
.opp parameters associated with .opd (text)  
.sm2d single-precision data (binary) little endian
.sm2p parameters associated with .sm2p (text)  
.opa ascii data optional

Double-precision data (.opd and .opp)

point=1024
dw=10
sf1=74.656
#
[Log]
actualNA=100
...
QDataStream out(&file);
out.setFloatingPointPrecision(QDataStream::DoublePrecision);
out.setByteOrder(QDataStream::LittleEndian);

for(int m=0; m<al(); m++) out << real->sig.at(m) << imag->sig.at(m);

file.close();
dwell time (dw), and carrier frequency (sf1)

Single-precision data (.sm2d and .sm2p)

QDataStream out(&file);
out.setFloatingPointPrecision(QDataStream::SinglePrecision);
out.setByteOrder(QDataStream::LittleEndian);

for(int m=0; m<al(); m++) out << (float) real->sig.at(m)
                              << (float) imag->sig.at(m);

file.close();

.opa

QFile file(fn);
if (!file.open(flag | QIODevice::Text))
{
     errorMessage=QString(Q_FUNC_INFO)+ ": Failed to open " + fn;
     return false;
}

QTextStream out(&file);

for(int i=0; i<FID.size(); i++)
{
    for(int k=0; k<FID.at(i)->al(); k++)
    {
       out << QString::number(FID.at(i)->real->sig.at(k),'g',12)
           << " "
           << QString::number(FID.at(i)->imag->sig.at(k),'g',12)
           << "\n";
    } // k
    out << "\n";
} // i
file.close();

Saving data halfway through accumulation

Temporary data files during array increments

When each step of an array experiment has been finished, the data is appended to temporary files with a name with “_array” suffix. You may hopefully find these “_array” files useful, when you want to check the data of already finished array steps. When the whole array experiment has been complete, the “_array” files are deleted.

Data files created/removed on repeated experiments

Back to Top