How to convert matrix data from nc file to vector lon lat?
Ältere Kommentare anzeigen
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...
Akzeptierte Antwort
Weitere Antworten (1)
Md. Sazzad
am 13 Nov. 2014
0 Stimmen
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(:)];
Kategorien
Mehr zu NetCDF finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!