how to convert datenum?
조회 수: 11 (최근 30일)
이전 댓글 표시
I have many time-datenum codes from olr.day.mean.nc. the one is 17298624 for the right result conver to datestring : june 6, 1974. but I got the wrong result. please help
THX
댓글 수: 2
the cyclist
2014년 5월 27일
I don't know what olr.day.mean.nc is. What makes you think it is equivalent to a MATLAB datenum?
Star Strider
2014년 5월 27일
I did a search for it. Go to NOAA Daily (non-interpolated) Outgoing Longwave Radiation (OLR) and find appropriate software to read the files. Another possible source of information is Re: Rewriting nc files.
Have fun!
채택된 답변
the cyclist
2014년 5월 27일
편집: the cyclist
2014년 5월 27일
Thanks to Star Strider's investigative work, I found this page that says that the OLR value is the number of hours since 1-1-1 00:00:00. This suggests to me that your conversion should be
datestr(17298624/24+365)
That's a few days off from the date you specify, but it is close.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!