<div dir="ltr"><div><div><div><div><div>Hi Daniel<br><br></div>&quot;Band-Interleaved Format&quot;  My understanding of the format is that the .bil file itself is just a &quot;brick of floats&quot; (or integers, bytes, etc.) that is MxNxP, where P is the number of bands that make up this image. It is organized as all of the floats (ints) of the first row for band-1, followed by the floats for first row&#39;s 2nd ban, ..., the floats of first row&#39;s Pth band, then likewise for subsequent rows, ...<br><br></div>In your example, there&#39;s only 1 band. We see that it is 621x1405, comprised of 32-bit floats. Hence the first row is 5620 bytes in length:  1405 * sizeof(float) = 1405 * 4 = 5620.  This should be relatively straightforward to read:<br><br><a href="http://ncl.ucar.edu/Applications/r-binary.shtml">http://ncl.ucar.edu/Applications/r-binary.shtml</a><br><br></div>Its not clear to me from the header whether the first row is the bottom/southern-most, or the top/northern-most.<br><br></div>Does that help?<br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 17, 2014 at 10:37 AM, Daniel Barandiaran <span dir="ltr">&lt;<a href="mailto:dbarandiaran@gmail.com" target="_blank">dbarandiaran@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Has anyone dealt with these files?  I&#39;ve done some work with binary files before, but I am no pro by any means.  I&#39;ve read a little about the data format of these .bil files, but I&#39;m still not sure about exactly how these files are formatted.  They have a file header, which contains the following:<br><br>BYTEORDER      I<br>LAYOUT         BIL<br>NROWS          621<br>NCOLS          1405<br>NBANDS         1<br>NBITS          32<br>BANDROWBYTES   5620<br>TOTALROWBYTES  5620<br>PIXELTYPE      FLOAT<br>ULXMAP         -125<br>ULYMAP         49.9166666666687<br>XDIM           0.04166666666667<br>YDIM           0.04166666666667<br>NODATA         -9999<br><br></div>any help would be appreciated!<span class="HOEnZb"><font color="#888888"><br clear="all"><div><div><br>-- <br>Danny Barandiaran<div>Department of Plants, Soils, and Climate</div><div>Utah State University</div><div><br><div><br></div></div>
</div></div></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>