read_bag

版本 1.12.0.0 (6.0 KB) 作者: Andrew Stevens
Read data from a bathymetric attributed grid (BAG) file
283.0 次下载
更新时间 2017/4/7

查看许可证

BAG files are common export format from many hydrographic survey software packages (eg. Caris). The file structure of BAG files is based on HDF5 and recent versions of Matlab (as of 2011a) has built-in tools to read these files. The metadata in BAG files is embedded in an XML structure that READ_BAG parses. Currently, only a small subset of the available metadata is currently read. More information about the BAG file format can be found here:
https://marinemetadata.org/references/bag
And a repository of bathymetric data stored in BAG file format can be found here:
https://maps.ngdc.noaa.gov/viewers/bathymetry/
Example usage:
%1) read the entire contents of the bag file
bag_file = 'foo.bag';
bag = read_bag(bag_file);
% 2) Read a portion of the bag file (between arbitrary xmin, xmax, ymin,ymax)
bag=read_bag(bag_file,'xlim', [xmin xmax],'ylim',[ymin ymax]);
% 3) Sub-sample every 3rd point in the bag file
bag = read_bag(bag_file,'stride',3)

引用格式

Andrew Stevens (2024). read_bag (https://www.mathworks.com/matlabcentral/fileexchange/52853-read_bag), MATLAB Central File Exchange. 检索时间: .

MATLAB 版本兼容性
创建方式 R2015b
兼容任何版本
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.12.0.0

fixed a bug reading the metadata xml

1.11.0.0

fixed typos in documentation

1.1.0.0

update description

1.0.0.0