<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[Real Science]]></provider_name><provider_url><![CDATA[https://stevengoddard.wordpress.com]]></provider_url><author_name><![CDATA[stevengoddard]]></author_name><author_url><![CDATA[https://stevengoddard.wordpress.com/author/stevengoddard/]]></author_url><title><![CDATA[Translating Fortran To A Human Readable&nbsp;Language]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>Answer to yesterday&#8217;s riddle. What is the magic number 1196575042?</p>
<pre>CALL GBYTE(Z,I4,(K+0)*8,4*8)
CALL GBYTE(Z,I1,(K+7)*8,1*8)
IF(I4.EQ.1196575042.AND.(I1.EQ.1.OR.I1.EQ.2)) THEN
   IF (I1.EQ.1) CALL GBYTE(Z,KG,(K+4)*8,3*8)
   IF (I1.EQ.2) CALL GBYTE(Z,KG,(K+12)*8,4*8)</pre>
<p>The C equivalent is :</p>
<pre>if ( !strncmp(Z, "GRIB", 4) )
{
   if (Z[7] == 1) strncpy(KG, &amp;Z[4], 3);
   else if (Z[7] == 2) strncpy(KG, &amp;Z[12], 4);
}</pre>
]]></html></oembed>