make_grid error

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
phamsymt
Posts: 26
Joined: Fri May 09, 2008 3:21 pm
Location: center for environment

make_grid error

#1 Unread post by phamsymt »

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
Attachments
romstools_param.m
(14.61 KiB) Downloaded 275 times

tony1230
Posts: 87
Joined: Wed Mar 31, 2010 3:29 pm
Location: SKLEC,ECNU,Shanghai,China

Re: make_grid error

#2 Unread post by tony1230 »

hi phamsymt
you mean in your orthogonal-curvilinear mesh, the resolutions are
Min dx=16.34 km - Max dx=18.5221 km
Min dy=16.3735 km - Max dy=18.5221 km
in x and y direction respectively.

What is the "ROMS resolution:17.9km" ?
It seems no data in the vector "x" , so is the "xx".check them first.

phamsymt
Posts: 26
Joined: Fri May 09, 2008 3:21 pm
Location: center for environment

Re: make_grid error

#3 Unread post by phamsymt »

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

Post Reply