Make a timevector with netcdf

1 Ansicht (letzte 30 Tage)
Jonas Damsbo
Jonas Damsbo am 22 Nov. 2018
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

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by