ncdatetime
Version 1.1 (2.67 KB) by
Yulia Yarinich
Function reads the time array from your netcdf file and represents it in a very user-friendly format.
NCDATETIME reads time array from the netcdf file and converts it from format 'days/hours/minutes/seconds since...' to user-friendly format in double, character and datetime versions with the ability to set the output format of character and datetime arrays.
Please check your netcdf file for existance of time:units attribute.
Call the function:
[time.double time.char time.datetime time.init time.units] = f_ncdatetime(filename, 1,Inf,1, 'yyyy-mm-dd HH-MM-ss', 'yyyy-MM-dd HH:mm:ss')
Cite As
Yulia Yarinich (2026). ncdatetime (https://github.com/YuliaYarinich/Matlab/releases/tag/v1.1), GitHub. Retrieved .
MATLAB Release Compatibility
Created with
R2017a
Compatible with R2017a to R2022b
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.1 |
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.
