<?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=Fid2pipe.m</id>
	<title>Fid2pipe.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=Fid2pipe.m"/>
	<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Fid2pipe.m&amp;action=history"/>
	<updated>2026-10-02T20:22:33Z</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=Fid2pipe.m&amp;diff=10222&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=Fid2pipe.m&amp;diff=10222&amp;oldid=prev"/>
		<updated>2026-08-30T09:11:33Z</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:11, 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-l40&quot; &gt;Line 40:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 40:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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;[[fid2ascii.m]], [[s2json.m]], [[hz2ppm.m]], [[Import, export, and visualisation]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;[[fid2ascii.m]], [[s2json.m]], [[hz2ppm.m]], [[Import, export, and visualisation]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&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='diff-marker'&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='diff-marker'&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;''Version 2.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;11&lt;/del&gt;, authors: [[Ilya Kuprov]]''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&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;''Version 2.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;13&lt;/ins&gt;, authors: [[Ilya Kuprov]]''&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=Fid2pipe.m&amp;diff=10090&amp;oldid=prev</id>
		<title>Kuprov: new page for Spinach main f053e432: documents fid2pipe.m from the source header and implementation</title>
		<link rel="alternate" type="text/html" href="https://spindynamics.org/wiki/index.php?title=Fid2pipe.m&amp;diff=10090&amp;oldid=prev"/>
		<updated>2026-08-30T08:03:01Z</updated>

		<summary type="html">&lt;p&gt;new page for Spinach main f053e432: documents fid2pipe.m from the source header and implementation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{DISPLAYTITLE:fid2pipe.m}} __NOTOC__&lt;br /&gt;
Exports phase-sensitive 2D Spinach free induction decays into native NMRPipe time-domain files. The function first points the NMRPipe runtime environment at the installation supplied by the caller: the nmrbin.linux212_64 and com directories are prepended to PATH, the library path is extended with the NMRPipe library directory, and TCLPATH, TCL_LIBRARY, TK_LIBRARY, BLT_LIBRARY, NMRBASE, NMRBIN, and NMRTXT are set; OPENWINHOME is set as well when the openwin directory is present.&lt;br /&gt;
&lt;br /&gt;
Observation frequencies for the two dimensions are computed in MHz from the magnetogyric ratios of the isotopes named in parameters.spins and the magnet field in spin_system.inter.magnet, and the carriers are converted into signed ppm by [[hz2ppm.m]] function. Each of the two components of the free induction decay is then written into a temporary text file, one point per line with the direct-dimension index, the indirect-dimension index, the real part, and the imaginary part, and converted into the NMRPipe format by the txt2pipe.tcl script with complex States acquisition in both dimensions. The temporary text file is deleted after each conversion, and a non-zero exit status from the conversion raises an error carrying the NMRPipe output.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
&lt;br /&gt;
     fid2pipe(spin_system,file_root,fid,parameters,nmrpipe_root)&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
&lt;br /&gt;
     spin_system  - Spinach spin system structure&lt;br /&gt;
 &lt;br /&gt;
     file_root    - output file name root without shell metacharacters;&lt;br /&gt;
                    the function writes &amp;lt;file_root&amp;gt;_pos.fid and&lt;br /&gt;
                    &amp;lt;file_root&amp;gt;_neg.fid&lt;br /&gt;
 &lt;br /&gt;
     fid          - structure with fid.pos and fid.neg complex matrices;&lt;br /&gt;
                    rows are direct-dimension points, and columns are&lt;br /&gt;
                    indirect-dimension points&lt;br /&gt;
 &lt;br /&gt;
     parameters   - pulse sequence parameters structure with fields&lt;br /&gt;
                    sweep, npoints, offset, and spins&lt;br /&gt;
 &lt;br /&gt;
     nmrpipe_root - NMRPipe installation root containing com/txt2pipe.tcl&lt;br /&gt;
                    and nmrbin.linux212_64&lt;br /&gt;
&lt;br /&gt;
==Outputs==&lt;br /&gt;
&lt;br /&gt;
     this function writes two NMRPipe files&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
Note: the exported files preserve the two Spinach echo/anti-echo components; recombination is done in the accompanying NMRPipe processing script after the direct-dimension Fourier transform.&lt;br /&gt;
&lt;br /&gt;
parameters.sweep and parameters.offset are ordered [F1 F2], and parameters.npoints is checked against the dimensions of fid.pos and fid.neg: parameters.npoints(1) must equal the number of columns and parameters.npoints(2) the number of rows.&lt;br /&gt;
&lt;br /&gt;
Both file_root and nmrpipe_root are restricted to alphanumeric characters and the /_.- set, and must contain no whitespace, because they are passed to a shell command.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[fid2ascii.m]], [[s2json.m]], [[hz2ppm.m]], [[Import, export, and visualisation]]&lt;br /&gt;
&lt;br /&gt;
''Version 2.11, authors: [[Ilya Kuprov]]''&lt;/div&gt;</summary>
		<author><name>Kuprov</name></author>
		
	</entry>
</feed>