<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Paola,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To read the ECCO .bin files, e.g., bathy_eccollc_90x50_min2pts.bin’, with ECCOv4-py functions:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">grid_dir = ‘THE_DIRECTORY_WHERE_THE_BATHYMETRY_FILE_IS’<o:p></o:p></p>
<p class="MsoNormal">fname = ‘bathy_eccollc_90x50_min2pts.bin’<o:p></o:p></p>
<p class="MsoNormal">bathy = ecco.read_llc_to_compact(grid_dir, fname)<o:p></o:p></p>
<p class="MsoNormal">This will give you the compact form (1170x90) of bathymetry. To get the 13-tiled form of bathymetry, <o:p></o:p></p>
<p class="MsoNormal">bathy_t = ecco.read_llc_to_tiles(grid_dir, fname)<o:p></o:p></p>
<p class="MsoNormal">bathy_t would be of size 13x90x90.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Both read_llc_to_compact and read_llc_to_tiles are defined in read_bin_llc.py https://github.com/ECCO-GROUP/ECCOv4-py/blob/master/ecco_v4_py/read_bin_llc.py<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ou<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black"><ecco-support-bounces@mit.edu> on behalf of Paola Cessi <pcessi@ucsd.edu><br>
<b>Reply-To: </b>"ECCO support list, wider membership" <ecco-support@mit.edu><br>
<b>Date: </b>Tuesday, August 6, 2019 at 9:32 AM<br>
<b>To: </b>"ecco-support@mit.edu" <ecco-support@mit.edu><br>
<b>Subject: </b>[EXTERNAL] [ecco-support] python example to read .bin ECCO files<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">Dear all, <o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">where can I find a python example/tutorial on how to read the ECCO .bin files? In particular I am interested in reading bathy_eccollc_90x50_min2ots.bin<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Many thanks,<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
Paola<br>
<span style="font-size:9.0pt"><br>
----------------------------------------------<br>
Paola Cessi <br>
Scripps Institution of Oceanography <br>
9500 Gilman Drive #0213 <br>
La Jolla, CA 92093-0213<br>
USA <br>
Tel: +1 858 534 0622 Fax: +1 858 534 8045<br>
e-mail: <a href="mailto:pcessi@ucsd.edu">pcessi@ucsd.edu</a> Web: <a href="http://www-pord.ucsd.edu/~pcessi">http://www-pord.ucsd.edu/~pcessi</a><br>
<br>
Delivery address (Fed-Ex, DHL, UPS, etc.):<br>
Paola Cessi<br>
University of California San Diego<br>
Keck Center - Room 366<br>
8851 Shellback Way<br>
La Jolla, CA 92093-0213<br>
USA</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>