ncRearrange
Versión 1.0.0 (2,81 KB) por
Yang Liu
Read data from NetCDF files and rearrange longitude and latitude dimensions.
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.
Citar como
Yang Liu (2024). ncRearrange (https://www.mathworks.com/matlabcentral/fileexchange/157361-ncrearrange), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Se creó con
R2020a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |