フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

How write file netcdf?

3 ビュー (過去 30 日間)
Carlos Batista
Carlos Batista 2014 年 6 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Hi users I'm new in Matlab and I'm trying save data the variable that I calculated in file netcdf, called GWS this script below!This variable has data: data-longitude, data-lattitude and the data-GWS... How I can write this data in file netcdf for read in Grads?
data = double(netcdf.getVar(ncid,varid));
altura=zeros(791,1,1);
onda=zeros(144,73);
energia=zeros(144,73);
GWS=zeros(144,73,2);
for lon = 1:144
for lat = 1:73
for tempo = 1:791
altura(tempo,1,1)=data(lon,lat,tempo);
end
[wave,power,scale,period,variance,global_ws,coi]=calto(altura,2,10,5,5.4,1);
for i=1:2
j=i-1;
soma=0;
n=4 ;
for k=1:n
t=j*n+k;
soma=global_ws(t)+soma;
end
GWS(lon,lat,i)=soma;
end
end
end
Thanks Carlos
Edit - formatted code. AU.
  4 件のコメント
Image Analyst
Image Analyst 2014 年 6 月 8 日
Examples are there. Did you overlook the example in the link Ashish gave? Scroll all the way down to the bottom of the web page and you will see two examples.
Carlos Batista
Carlos Batista 2014 年 6 月 8 日
This showing an error (?? Undefined function or method 'nccreate' for input arguments of type 'cell')
I need nccreate function?

回答 (0 件)

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by