How to convert matrix data from nc file to vector lon lat?
이전 댓글 표시
does anyone can help me, i have data in ncfile, and successfully read using matlab with ncread and ncdisp function, then my data format was like this:
Variables:
time
Size: 1x1
Dimensions: time
Datatype: double
Attributes:
units = 'minutes since 0001-01-01 00:01:00.0'
calendar = 'gregorian'
latitude
Size: 801x1
Dimensions: latitude
Datatype: single
Attributes:
units = 'degrees_north'
longitude
Size: 1801x1
Dimensions: longitude
Datatype: single
Attributes:
units = 'degrees_east'
DEN
Size: 1801x801x1
Dimensions: longitude,latitude,time
Datatype: single
Attributes:
least_significant_digit = 4
how i can can convert it become vector with this format: latitude,longitude,DEN ?
example:
lat\lon 101 102 103 .......
15 1 2 3
16 4 5 6
17 7 8 9 ......
....
become:
15, 101 = 1
15, 102 = 2
15, 103 = 3
16, 101 = 4
16, 102 = 5
16, 103 = 6
.....etc
thanks in advance...
채택된 답변
추가 답변 (1개)
Md. Sazzad
2014년 11월 13일
0 개 추천
I am using the same command but getting the following error
Error using horzcat Dimensions of matrices being concatenated are not consistent.
Error in testnc (line 7) out = [la(:),lo(:),t(:)];
카테고리
도움말 센터 및 File Exchange에서 NetCDF에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!