<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=THIN</id>
	<title>THIN - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ice-online.com/index.php?action=history&amp;feed=atom&amp;title=THIN"/>
	<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=THIN&amp;action=history"/>
	<updated>2026-04-11T12:30:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.ice-online.com/index.php?title=THIN&amp;diff=852&amp;oldid=prev</id>
		<title>ConvertBot: Copy one file to another with optional offset, length, and decimation</title>
		<link rel="alternate" type="text/html" href="https://wiki.ice-online.com/index.php?title=THIN&amp;diff=852&amp;oldid=prev"/>
		<updated>2020-04-27T22:05:17Z</updated>

		<summary type="html">&lt;p&gt;Copy one file to another with optional offset, length, and decimation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Copy one file to another with optional offset, length, and decimation&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;IN&amp;gt;     Input file&lt;br /&gt;
&amp;lt;OUT&amp;gt;    Output file&lt;br /&gt;
&amp;lt;START&amp;gt;  Starting offset (inclusive)&lt;br /&gt;
&amp;lt;END&amp;gt;    Ending offset (exclusive)&lt;br /&gt;
&amp;lt;INC&amp;gt;    Increment between input file elements&lt;br /&gt;
&amp;lt;FSTART&amp;gt; Frame Starting offset&lt;br /&gt;
&amp;lt;FEND&amp;gt;   Frame Ending offset&lt;br /&gt;
&amp;lt;FINC&amp;gt;   Frame Increment between input file elements&lt;br /&gt;
&lt;br /&gt;
This primitive performs data thinning on 1D, 2D, or record oriented file&lt;br /&gt;
formats. The last 3 arguments apply only to 2D interframe. (The X-Midas&lt;br /&gt;
TWODTHIN function). If the increment is negative, this primitive performs the&lt;br /&gt;
UPZERO function.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;START&amp;gt;, &amp;lt;END&amp;gt;, and &amp;lt;INC&amp;gt; arguments are absolute, offset addresses by&lt;br /&gt;
default. To use abscissa addressing, precede the argument with a tilde (~). To&lt;br /&gt;
use relative addressing, precede the argument with a plus.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;START&amp;gt; and &amp;lt;END&amp;gt; are ZERO based offsets, so that start=2 end=10 actually&lt;br /&gt;
gets the data elements starting and INCLUDING offset=2 up and EXCLUDING&lt;br /&gt;
offset=10.  This corresponds to the one-based elements 3 through 10. This is&lt;br /&gt;
identical to the way file trimming arguments are used.&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
  1. Copy infile to outfile downsampling by factor of 2 (i.e. 50% reduction)&lt;br /&gt;
    nM&amp;gt; thin infile outfile ,, 2&lt;br /&gt;
    -or-&lt;br /&gt;
    nM&amp;gt; thin infile outfile inc=2&lt;br /&gt;
&lt;br /&gt;
  2. Copy elements 1-3 of infile to outfile.&lt;br /&gt;
    nM&amp;gt; thin infile outfile 0 3&lt;br /&gt;
&lt;br /&gt;
  3. Copy all but the last two elements of infile to outfile.&lt;br /&gt;
    nM&amp;gt; thin infile outfile 0 -2&lt;br /&gt;
&lt;br /&gt;
  4. Copy every third element from the 2nd element to the end of the file (EOF).&lt;br /&gt;
    nM&amp;gt; thin infile outfile 1 -0 3&lt;br /&gt;
&lt;br /&gt;
  5. Copy 20 elements starting at 1 second into the file.&lt;br /&gt;
    nM&amp;gt; thin infile outfile ~1 +20&lt;br /&gt;
&lt;br /&gt;
  6. Copy every other element from 1sec to 2sec into the file.&lt;br /&gt;
    nM&amp;gt; thin infile outfile ~1 ~2 2&lt;br /&gt;
&lt;br /&gt;
  7. Upsample infile by 8 by inserting 7 zeros between each value.&lt;br /&gt;
    nM&amp;gt; thin infile outfile INC=-8&lt;br /&gt;
  or&lt;br /&gt;
    nM&amp;gt; thin infile outfile INC=.125&lt;br /&gt;
&lt;br /&gt;
  8. Get Y cut of a type 2000 file at index x (without adjustments).&lt;br /&gt;
    nM&amp;gt; thin in2000 out2000 fstart=x fend=x+1&lt;br /&gt;
    -or- into a type 1000 file with xstart, xdelta, xunits re-adjusted&lt;br /&gt;
    nM&amp;gt; thin in2000 out1000{type=1000,xs=inys,xd=inyd,xu=inxu,yu=none} &amp;amp;&lt;br /&gt;
             fstart=x fend=x+1&lt;br /&gt;
&lt;br /&gt;
  9. Reset the Frame Start value of a thinned Type 2000 data pipe&lt;br /&gt;
     nM&amp;gt; set reg.&amp;lt;id&amp;gt;.fstart &amp;lt;new fstart value&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 10. Reset the frame start, stop and increment of a thinned Type 2000 data pipe&lt;br /&gt;
     nM&amp;gt; set reg.&amp;lt;id&amp;gt;.fvals {FSTART=&amp;lt;val&amp;gt;,FEND=&amp;lt;val&amp;gt;,FINC=&amp;lt;val&amp;gt;}&lt;br /&gt;
&lt;br /&gt;
 11. Thin out file forcing abscissa + timecode addressing&lt;br /&gt;
     nM&amp;gt; thin infile outfile startTime endTime /addressing=TIMECODE&lt;br /&gt;
&lt;br /&gt;
 12. Thin out file using only abscissa addressing (do not add timecode)&lt;br /&gt;
     nM&amp;gt; thin infile outfile startSec endSec /addr=ABSCISSA&lt;br /&gt;
&lt;br /&gt;
Switches:&lt;br /&gt;
  /ABSC        Use ABSCISSA_LEGACY addressing for ALL arguments&lt;br /&gt;
  /ADDR=       Alias for /ADDRESSING&lt;br /&gt;
  /ADDRESSING= Addressing mode. [DEF=INDEX] (Since 2.9.1)&lt;br /&gt;
      INDEX           - Absolute indexing.&lt;br /&gt;
      ABSCISSA        - Abscissa indexing only (e.g. time or frequency).&lt;br /&gt;
      TIMECODE        - Indexing using time: abscissa address +&lt;br /&gt;
                        (TimeLine (if exists) or timecode, in that order).&lt;br /&gt;
      ABSCISSA_AUTO   - Same as TIMECODE mode when abscissa units is Time,&lt;br /&gt;
                        otherwise same a ABSCISSA mode.&lt;br /&gt;
      ABSCISSA_LEGACY - Similar to ABSCISSA_AUTO, but ONLY use&lt;br /&gt;
                        abscissa + TimeLine/timecode when abscissa units is Time&lt;br /&gt;
                        and when return index is greater than 100e6 seconds.&lt;br /&gt;
  /RESTART=T|F Enable/disable the output pipe from restarting when certain&lt;br /&gt;
               properties (inc, start, end, and fend) are changed. [DEF=TRUE]&lt;br /&gt;
  /TL=n        Specify the number of elements to process on each read&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:NXM_Explain]]&lt;/div&gt;</summary>
		<author><name>ConvertBot</name></author>
		
	</entry>
</feed>