Dear all
I am trying to create file roms_grd.nc with Matlab2010a, mexcdf.r3776, and romstools_param.m (in attached file. However, I get error showing as below:
..................
Compute the metrics...
Min dx=16.34 km - Max dx=18.5221 km
Min dy=16.3735 km - Max dy=18.5221 km
Fill the grid file...
Add topography...
ROMS resolution : 17.9 km
Topography data resolution : NaN km
Topography resolution halved 0 times
New topography resolution : NaN km
??? Attempted to access x(1,:); index out of bounds because size(x)=[0,0].
Error in ==> interp2 at 152
xx = x(1,:); yy = y(:,1);
Error in ==> add_topo at 133
h=interp2(x,y,topo,lon,lat,'cubic');
Error in ==> make_grid at 153
h=add_topo(grdname,topofile);
I highly appreciate any helps
Pham Van Sy
make_grid error
make_grid error
- Attachments
-
romstools_param.m
- (14.61 KiB) Downloaded 268 times
Re: make_grid error
hi phamsymt
you mean in your orthogonal-curvilinear mesh, the resolutions are
What is the "ROMS resolution:17.9km" ?
It seems no data in the vector "x" , so is the "xx".check them first.
you mean in your orthogonal-curvilinear mesh, the resolutions are
in x and y direction respectively.Min dx=16.34 km - Max dx=18.5221 km
Min dy=16.3735 km - Max dy=18.5221 km
What is the "ROMS resolution:17.9km" ?
It seems no data in the vector "x" , so is the "xx".check them first.
Re: make_grid error
Thank You for your advice,
I have solved my problem by using old Preprocessing_tool package. I do not understand why. hic
Thank you very much
I have solved my problem by using old Preprocessing_tool package. I do not understand why. hic
Thank you very much