<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do extract parts of a binary file and evaluate them separately? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524304#M74896</link>
    <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-07-21_13-23-53.png" style="width: 398px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44170i30F00E5784D55D55/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-07-21_13-23-53.png" alt="2022-07-21_13-23-53.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2022 05:26:29 GMT</pubDate>
    <dc:creator>lala</dc:creator>
    <dc:date>2022-07-21T05:26:29Z</dc:date>
    <item>
      <title>How do extract parts of a binary file and evaluate them separately?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524266#M74891</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example this file with this script can get the first data is a date.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-07-21_12-05-43.png" style="width: 752px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44169i5DFF1324E54D2A72/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-07-21_12-05-43.png" alt="2022-07-21_12-05-43.png" /&gt;&lt;/span&gt;&lt;BR /&gt;How do I use a script to extract this "A2 3F 32 01"&lt;BR /&gt;and use a script to calculate its corresponding decimal value= 20070306&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 17:04:57 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524266#M74891</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2023-06-09T17:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do extract parts of a binary file and evaluate them separately?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524269#M74892</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;This will not reverse success&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;bb = Load Text File( "I:\E\00820070306.zst", blob() );
ymd = Blob To Matrix( bb, "uint", 4, "little", 8 );

a=Munger(char(bb),contains(char(bb),"(")+4,12);
b=Char To blob(a, "utf-8" );;
mat=blobtomatrix(b, "uint", 4, "little", 8 );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Jul 2022 04:30:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524269#M74892</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-07-21T04:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do extract parts of a binary file and evaluate them separately?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524291#M74894</link>
      <description>&lt;P&gt;Maybe&amp;nbsp;&lt;A href="https://help.jmp.com/help?keyword=JSL%20Blob%20Peek&amp;amp;lang=en&amp;amp;os=win&amp;amp;source=application&amp;amp;version=16.2.0" target="_blank" rel="noopener"&gt;BLOB Peek(blob, offset, length)&lt;/A&gt;&amp;nbsp;would work? Also this might be a good watch&amp;nbsp;&lt;LI-MESSAGE title="Importing Binary Data with JSL (2022-EU-45MP-946)" uid="446124" url="https://community.jmp.com/t5/Discovery-Summit-Europe-2022/Importing-Binary-Data-with-JSL-2022-EU-45MP-946/m-p/446124#U446124" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-tkb-thread lia-fa-icon lia-fa-tkb lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 05:12:04 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524291#M74894</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-07-21T05:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do extract parts of a binary file and evaluate them separately?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524304#M74896</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-07-21_13-23-53.png" style="width: 398px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44170i30F00E5784D55D55/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-07-21_13-23-53.png" alt="2022-07-21_13-23-53.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 05:26:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524304#M74896</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-07-21T05:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do extract parts of a binary file and evaluate them separately?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524308#M74897</link>
      <description>&lt;P&gt;Your code&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;bb = Load Text File( "I:\E\00820070306.zst", blob() );
ymd = Blob To Matrix( bb, "uint", 4, "little", 8 );&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;is creating a 2 dimensional matrix you are calling "ymd" with the values converted to decimal values.&amp;nbsp; All you have to do, is to create a new data table, then create a new column and set the values in the new column to the first column in the matrix ymd.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

bb = Load Text File( "I:\E\00820070306.zst", blob() );
ymd = Blob To Matrix( bb, "uint", 4, "little", 8 );

dt = New Table( "zst" );
dt &amp;lt;&amp;lt; New Column( "col 1" );
	Column( dt, 1 ) &amp;lt;&amp;lt; set values( ymd[0, 1] );
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then just repeat it for the remaining 7 columns in the matrix&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1658383099652.png" style="width: 722px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44171i3503D043A03BC5CC/image-dimensions/722x531?v=v2" width="722" height="531" role="button" title="txnelson_0-1658383099652.png" alt="txnelson_0-1658383099652.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 05:58:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524308#M74897</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-07-21T05:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do extract parts of a binary file and evaluate them separately?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524330#M74901</link>
      <description>&lt;P&gt;Thank Jim!&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes, I got this code from Craige.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;This code is useful when it knows the binary data structure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;But this new file I don't know its data structure.&lt;/SPAN&gt;&lt;SPAN class=""&gt;I'm on a quest.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I'm wrapping this file at 00 intervals.&lt;/SPAN&gt;&lt;SPAN class=""&gt;I get the data for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Except for the first line which I know contains the date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;But the data starting in the second line is integer data, floating point data.&lt;/SPAN&gt;&lt;SPAN class=""&gt;But which field is a floating point, or an integer.&lt;/SPAN&gt;&lt;SPAN class=""&gt;I don't know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2022-07-21_14-28-39.png" style="width: 253px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/44173i7ED4351B1820ACCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2022-07-21_14-28-39.png" alt="2022-07-21_14-28-39.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I can only restore the comparison field by field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I still haven't figured it out yet.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 06:30:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524330#M74901</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-07-21T06:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do extract parts of a binary file and evaluate them separately?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524332#M74903</link>
      <description>&lt;P&gt;Best of luck&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 06:38:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524332#M74903</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-07-21T06:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do extract parts of a binary file and evaluate them separately?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524337#M74904</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can take something in hexadecimal form and compute it as a floating point?&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;~D9~40~D9~CE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The following code ran incorrectly&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;b = Char To Blob( "~D9~40~D9~CE", "ascii~hex" );
f = Blob To Matrix( b, "float", 4, "little", 4 );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 08:47:58 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524337#M74904</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-07-21T08:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do extract parts of a binary file and evaluate them separately?</title>
      <link>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524361#M74908</link>
      <description>&lt;UL&gt;&lt;LI&gt;&lt;P class=""&gt;OK&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P class=""&gt;I just wrote the wrong code.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2022 08:49:06 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-do-extract-parts-of-a-binary-file-and-evaluate-them/m-p/524361#M74908</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2022-07-21T08:49:06Z</dc:date>
    </item>
  </channel>
</rss>

