Make a timevector with netcdf
2 ビュー (過去 30 日間)
古いコメントを表示
Hi
I hvae 4 time vectors with the same interval. And I hvae 4 variables vector (same variable) there is depending on the time.
Is it possible to get one long time vector and one long variable vector?
I have tried the following, but it gived me an error:
time = ncread(file,'time') ; nt = length(time);
time1 = ncread(file1,'time') ; nt1 = length(time);
time2 = ncread(file2,'time') ; nt2 = length(time);
time3 = ncread(file3,'time') ; nt3 = length(time);
time_T = time:time1:time2:time3
nt_T = nt+nt1+nt2+nt3
z = ncread(file,'z') ; nz = length(z);
z1 = ncread(file1,'z') ; nz1 = length(z1);
z2 = ncread(file2,'z') ; nz2 = length(z2);
z3 = ncread(file3,'z') ; nz3 = length(z3);
z_T = z:z1:z2:z3
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で NetCDF についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!