ncRearrange

版本 1.0.0 (2.8 KB) 作者: Yang Liu
Read data from NetCDF files and rearrange longitude and latitude dimensions.
8.0 次下载
更新时间 2024/1/9

查看许可证

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