버전 1.1 (1.95 KB) 작성자: ANKUR KUMAR
This function helps user to read the time variable in netcdf file in a specific matlab readable format

다운로드 수: 18

업데이트 날짜: 2021/3/18

라이선스 보기

The very first argument should be the variable values and can be extracted as ncread(filename,'time')
Second argument is the time units, which can be extracted as ncreadatt(filename,'time','units')
Third argument is the format, in which user needs the output

Following are some of the examples:

Example 1: If the user needs to have time in 'dd/mm/yyyy_hh' format
ncreadtime(nctimevar,'hours since 12-01-2015 12:00:00','dd/mm/yyyy_hh')

Example 2: If the user is not providing the choice of output
time format, program will print in 'dd/mm/yyyy_HH' by default
ncreadtime(nctimevar,'hours since 12-01-2015 12:00:00')

Example 3: If you do not wish to write manually the time units
everytime, user can prefer to use the following command, but
make sure input file should have units in the time variable

인용 양식

ANKUR KUMAR (2023). ncreadtime (, MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2020b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보

Removed bugs.