I tried to obtain the Bathymetry data through below way, but it doesnot work.
I donot know how to do.
can anyone help me?
thank you!
Code: Select all
>> y=nc_varget('etopo5.nc','topo_lat',[1020],[421]);
>> x=nc_varget('etopo5.nc','topo_lon',[1140],[481]);
>> z=nc_varget('etopo5.nc','topo',[1020 1140],[421 481]);
>> [X,Y]=meshgrid(x,y);
>> save bathy.mat X Y z
Code: Select all
>> y=nc_varget('etopo5.nc','topo_lat',[1020],[421]);
>> x=nc_varget('etopo5.nc','topo_lon',[1140],[481]);
>> z=nc_varget('etopo5.nc','topo',[1020 1140],[421 481]);
>> [X,Y]=meshgrid(x,y);
>> X=X(:);
>> Y=Y(:);
>> Z=z(:);
>> save bathy.mat X Y Z