How to convert netcdf datenum to HH:mm:ss.

13 ビュー (過去 30 日間)
ABDALLAH BOINA Safinati-Amir
ABDALLAH BOINA Safinati-Amir 2020 年 4 月 8 日
回答済み: Pratheek Punchathody 2021 年 1 月 22 日
Hello,
I have a netcdf file that i've read and extract time data (datenum) (days since 1970-01-01 00:00:00), i would like to convert them from datenum to this format : HH:mm:ss. If i take the exemple of 13-12-2019, i have series of datenum and when i convert them it returns me these date 11-12-0049.
I started to write this code, How should i do?
GHI=ncread('1574138737_2020-01-01.nc','total horizontal irradiance');
Temps=ncread('1574138737_2020-01-01.nc','time');
Time=datetime(Temps,'convertFrom','datenum');

回答 (1 件)

Pratheek Punchathody
Pratheek Punchathody 2021 年 1 月 22 日
You can look into the similar answer in the community in the following Link which would help you in finding answers.

カテゴリ

Help Center および File ExchangeNetCDF についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by