[ecco-support] [EXTERNAL] python example to read .bin ECCO files

Wang, Ou (US 329B) ou.wang at jpl.nasa.gov
Thu Aug 8 12:11:36 EDT 2019


Paola,

To read the ECCO .bin files, e.g., bathy_eccollc_90x50_min2pts.bin’, with ECCOv4-py functions:

grid_dir = ‘THE_DIRECTORY_WHERE_THE_BATHYMETRY_FILE_IS’
fname = ‘bathy_eccollc_90x50_min2pts.bin’
bathy = ecco.read_llc_to_compact(grid_dir, fname)
This will give you the compact form (1170x90) of bathymetry. To get the 13-tiled form of bathymetry,
bathy_t = ecco.read_llc_to_tiles(grid_dir, fname)
bathy_t would be of size 13x90x90.

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

Ou

From: <ecco-support-bounces at mit.edu> on behalf of Paola Cessi <pcessi at ucsd.edu>
Reply-To: "ECCO support list, wider membership" <ecco-support at mit.edu>
Date: Tuesday, August 6, 2019 at 9:32 AM
To: "ecco-support at mit.edu" <ecco-support at mit.edu>
Subject: [EXTERNAL] [ecco-support] python example to read .bin ECCO files

Dear all,

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

Many thanks,

Paola

----------------------------------------------
Paola Cessi
Scripps Institution of Oceanography
9500 Gilman Drive #0213
La Jolla, CA 92093-0213
USA
Tel: +1 858 534 0622   Fax: +1 858 534 8045
e-mail: pcessi at ucsd.edu<mailto:pcessi at ucsd.edu>     Web:  http://www-pord.ucsd.edu/~pcessi

Delivery address (Fed-Ex, DHL, UPS, etc.):
Paola Cessi
University of California San Diego
Keck Center - Room 366
8851 Shellback Way
La Jolla, CA 92093-0213
USA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/ecco-support/attachments/20190808/0f7ab9b8/attachment.html


More information about the ecco-support mailing list