ncRearrange reads data from variables in NetCDF (.nc) files and rearranges the longitude and latitude dimensions. This function offers several advantages over the standard ncread function provided by MATLAB:
(1) It repositions the longitude and latitude of the variable to the first and second dimensions, respectively.
(2) Longitude and latitude dimensions are reorganized in ascending order, i.e., rows from top to bottom represent west to east, while columns from left to right represent south to north.
(3) The function can read Geo2D data without the requirement for the user to specify the variable name.
(4) Unlike ncread, which requires a starting point and count for reading subset, ncRearrange allows users to read specific portions of data by specifying longitude and latitude ranges.
By using ncRearrange, users are no longer required to verify dimension order and variable names before accessing NetCDF data.
引用格式
Yang Liu (2024). ncRearrange (https://www.mathworks.com/matlabcentral/fileexchange/157361-ncrearrange), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2020a
兼容任何版本
平台兼容性
Windows macOS Linux标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0 |