<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=B2spinach.m</id>
	<title>B2spinach.m - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://spindynamics.org/wiki/index.php?action=history&amp;feed=atom&amp;title=B2spinach.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=B2spinach.m&amp;action=history"/>
	<updated>2026-12-06T06:00:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.15</generator>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=B2spinach.m&amp;diff=10170&amp;oldid=prev</id>
		<title>Kuprov: version fragment to 2.13 per IK 2026-08-30</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=B2spinach.m&amp;diff=10170&amp;oldid=prev"/>
		<updated>2026-08-30T09:10:20Z</updated>

		<summary type="html">&lt;p&gt;version fragment to 2.13 per IK 2026-08-30&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 09:10, 30 August 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l105&quot; &gt;Line 105:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 105:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[v2spinach.m]], [[c2spinach.m]], [[g2spinach.m]], [[x2spinach.m]], [[read_wave.m]], [[Import,_export,_and_visualisation]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[v2spinach.m]], [[c2spinach.m]], [[g2spinach.m]], [[x2spinach.m]], [[read_wave.m]], [[Import,_export,_and_visualisation]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;Version 2.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;11&lt;/del&gt;, authors: [[Ilya Kuprov]], [[Mathias Nilsson]]&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#039;&amp;#039;Version 2.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;13&lt;/ins&gt;, authors: [[Ilya Kuprov]], [[Mathias Nilsson]]&amp;#039;&amp;#039;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
	<entry>
		<id>https://spindynamics.org/wiki/index.php?title=B2spinach.m&amp;diff=10062&amp;oldid=prev</id>
		<title>Kuprov: sync with Spinach main f053e432: new page for the Bruker time-domain data import function</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=B2spinach.m&amp;diff=10062&amp;oldid=prev"/>
		<updated>2026-08-30T07:49:34Z</updated>

		<summary type="html">&lt;p&gt;sync with Spinach main f053e432: new page for the Bruker time-domain data import function&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:b2spinach.m}} __NOTOC__&lt;br /&gt;
Imports time-domain NMR data recorded by Bruker instruments: reads the binary fid or ser file together with the acquisition and processing parameter files from the numbered experiment directory. The dimension of the data set is deduced from the presence of the acqu2s, acqu3s, and acqu4s status parameter files; data sets with more than four dimensions are refused. The parameter files are parsed from JCAMP-DX into Matlab structures, the binary byte order is taken from BYTORDA, the storage type and the file block size from DTYPA, the padding to whole 1024-byte blocks is stripped, complex fids are assembled in the Bruker sign convention as the real part minus the imaginary part times the imaginary unit, and the amplitudes are scaled by 2^NC. The group delay of the digital filter is zero when DIGMOD reports analogue filtering, is taken from GRPDLY when the hardware supplies it, comes from the tabulated DECIM and DSPFVS combinations for the DSP firmware families 10 to 12, and from the closed form 3-1/(2*DECIM) for firmware family 13. The difflist, vdlist, vclist, and nuslist files are read when they are present.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     bdata=b2spinach(inpath)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
     inpath  -  character string with the path to the numbered&lt;br /&gt;
                Bruker experiment directory containing the ac-&lt;br /&gt;
                qus file and the fid or ser file&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     bdata.fid         - matrix of complex free induction de-&lt;br /&gt;
                         cays, one per column, in the order&lt;br /&gt;
                         they are stored in the file; for data&lt;br /&gt;
                         sets with three and more dimensions&lt;br /&gt;
                         the loop order over the indirect di-&lt;br /&gt;
                         mensions is determined by the AQSEQ&lt;br /&gt;
                         parameter of the acqus structure&lt;br /&gt;
 &lt;br /&gt;
     bdata.acqus       - structure with every parameter found&lt;br /&gt;
                         in the acqus file: numeric parameters&lt;br /&gt;
                         as scalars or column vectors, string&lt;br /&gt;
                         parameters as character strings or&lt;br /&gt;
                         cell arrays thereof&lt;br /&gt;
 &lt;br /&gt;
     bdata.acqu2s      - same for the acqu2s file of data sets&lt;br /&gt;
                         with two or more dimensions&lt;br /&gt;
 &lt;br /&gt;
     bdata.acqu3s      - same for the acqu3s file of data sets&lt;br /&gt;
                         with three or more dimensions&lt;br /&gt;
 &lt;br /&gt;
     bdata.acqu4s      - same for the acqu4s file of four-di-&lt;br /&gt;
                         mensional data sets&lt;br /&gt;
 &lt;br /&gt;
     bdata.procs       - same for the procs file of the first&lt;br /&gt;
                         processed data directory when present&lt;br /&gt;
 &lt;br /&gt;
     bdata.dirname     - experiment directory name&lt;br /&gt;
 &lt;br /&gt;
     bdata.ndims_data  - number of dimensions in the data set&lt;br /&gt;
 &lt;br /&gt;
     bdata.arraydim    - number of fids the status parameter&lt;br /&gt;
                         files declare as acquired&lt;br /&gt;
 &lt;br /&gt;
     bdata.fids_in_file - number of fid slots held by the bina-&lt;br /&gt;
                         ry file, and the column count of the&lt;br /&gt;
                         fid matrix; exceeds arraydim when the&lt;br /&gt;
                         acquisition was preallocated or inter-&lt;br /&gt;
                         rupted, and falls short of it for non-&lt;br /&gt;
                         uniformly sampled data sets, where the&lt;br /&gt;
                         fids follow the acquisition order of&lt;br /&gt;
                         the sampling schedule in nus_list&lt;br /&gt;
 &lt;br /&gt;
     bdata.npoints     - complex points per fid&lt;br /&gt;
 &lt;br /&gt;
     bdata.pulprog     - pulse programme name&lt;br /&gt;
 &lt;br /&gt;
     bdata.nucleus     - observe nucleus, e.g. &amp;#039;1H&amp;#039;&lt;br /&gt;
 &lt;br /&gt;
     bdata.gamma       - magnetogyric ratio of the observe&lt;br /&gt;
                         nucleus, rad/(s*T)&lt;br /&gt;
 &lt;br /&gt;
     bdata.sfrq        - spectrometer frequency, MHz&lt;br /&gt;
 &lt;br /&gt;
     bdata.at          - acquisition time, seconds&lt;br /&gt;
 &lt;br /&gt;
     bdata.sw_ppm      - spectral width, ppm&lt;br /&gt;
 &lt;br /&gt;
     bdata.spec_start  - lower edge of the spectrum, ppm&lt;br /&gt;
 &lt;br /&gt;
     bdata.digshift    - group delay of the digital filter in&lt;br /&gt;
                         complex points; the first round(dig-&lt;br /&gt;
                         shift) points of each fid precede the&lt;br /&gt;
                         start of the true signal&lt;br /&gt;
 &lt;br /&gt;
     bdata.grad_amps   - gradient amplitudes, T/m, present&lt;br /&gt;
                         when the difflist file exists&lt;br /&gt;
 &lt;br /&gt;
     bdata.vd_list     - variable delay list, seconds, present&lt;br /&gt;
                         when the vdlist file exists&lt;br /&gt;
 &lt;br /&gt;
     bdata.vc_list     - variable counter list, present when&lt;br /&gt;
                         the vclist file exists&lt;br /&gt;
 &lt;br /&gt;
     bdata.nus_list    - non-uniform sampling schedule, pre-&lt;br /&gt;
                         sent when the nuslist file exists&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
The lower edge of the spectrum is taken from the OFFSET parameter of the procs file when the processed data directory is present, and computed from SFO1, BF1, and SW otherwise; the two routes need not agree to the last digit.&lt;br /&gt;
&lt;br /&gt;
The function reads status parameter files (acqus, acqu2s, ...), not the acquisition input files (acqu, acqu2, ...), so the numbers it reports are those of the acquisition that actually took place.&lt;br /&gt;
&lt;br /&gt;
Adapted from the brukerimport() function of the GNAT package by:&lt;br /&gt;
&lt;br /&gt;
     Dr. Mathias Nilsson&lt;br /&gt;
     School of Chemistry, University of Manchester,&lt;br /&gt;
     Oxford Road, Manchester M13 9PL, UK&lt;br /&gt;
     mathias.nilsson@manchester.ac.uk&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[v2spinach.m]], [[c2spinach.m]], [[g2spinach.m]], [[x2spinach.m]], [[read_wave.m]], [[Import,_export,_and_visualisation]]&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;Version 2.11, authors: [[Ilya Kuprov]], [[Mathias Nilsson]]&amp;#039;&amp;#039;&lt;/div&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
</feed>