ncRearrange

Version 1.0.0 (2,81 KB) von Yang Liu
Read data from NetCDF files and rearrange longitude and latitude dimensions.
7 Downloads
Aktualisiert 9. Jan 2024

Lizenz anzeigen

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.

Zitieren als

Yang Liu (2024). ncRearrange (https://www.mathworks.com/matlabcentral/fileexchange/157361-ncrearrange), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2020a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Tags Tags hinzufügen

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0