read_netcdf

버전 1.7.0.0 (2.79 KB) 작성자: Samuel Lazerson
Reads a netCDF file and returns the contents as elements of a structure.
다운로드 수: 2.5K
업데이트 날짜: 2011/7/5

라이선스 보기

This function uses the MATLAB netCDF routines to read the contents of a netCDF file into a structure. It currently extracts the global attributes, dimensions, variables and variable attributes from the file. The variable attributes use the naming scheme 'varname_attname.'

READ_NETCDF(filename,'flipdim') Flips the dimensions of 2D arrays.

READ_NETCDF(filename,'strip') Strips non-alphanumeric characters from element names so they will be compatible with MATLAB structure element naming conventions.

인용 양식

Samuel Lazerson (2024). read_netcdf (https://www.mathworks.com/matlabcentral/fileexchange/28556-read_netcdf), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 NetCDF에 대해 자세히 알아보기
도움

줌: read_hdf5

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.7.0.0

All '+' converted to 'p' in names. All '-' converted to 'n' in names. Thanks to Thomas Leslie Leith for bringing this to my attention.

1.6.0.0

Fixed an issue where non-string attributes would cause the code to fail to read the file. Thanks to Zelalem Engida for bringing this to my attention.

1.5.0.0

Increased code's ability to handle strings.

1.4.0.0

Added the 'strip' and 'flipdim' options.

1.3.0.0

Fixed issue reading 1D arrays and some scalar variables.

1.2.0.0

The function can now be called with the 'flipdim' option causing the array indices to be permuted in reverse order.

1.1.0.0

Updated to v0.95. Now uses java to read netCDF files. I've found this is more portable than the MATLAB netCDF calls.

1.0.0.0