Make a timevector with netcdf
1 次查看(过去 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!