MATLAB Answers

How to read a netcdf file and convert it to time table

조회 수: 8(최근 30일)
Hamed Hedayatnia
Hamed Hedayatnia 2020년 11월 17일
댓글: Hamed Hedayatnia 2020년 11월 21일
Hi guys,
I have a climate data file in netsdf format containing long, lat, time and temperature. The issue is that temperature has been shown for 9 lang and 5 lat during 3 years.
As can be observed. I need to extract t2m variable during the time for each lat,long(9*5=45 different point).
The question is how can I do that?
Thanks in advsnce

답변(1개)

Peter Perkins
Peter Perkins 2020년 11월 19일
Hamed, it's not currently possible to create a timetable that is 3-D (lat-by-lon-by-time). One thing you can do is make a 45*8759x3 timetable, with variables for lat, lon, and temp. Another possibility is to make an 8759x45 timetable with one var for each grid point. Or an 8759x9 timetable each of whose variables is itself 8759x5.
Hard to say which of these might work for you, it depends on what you need to do next.
  댓글 수: 3
Hamed Hedayatnia
Hamed Hedayatnia 2020년 11월 21일
How can I create an 8759x45 timetable with one var for each grid point?

댓글을 달려면 로그인하십시오.

태그

제품


릴리스

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by