Grid processing scripts for nesting

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
MaximeDebert

Grid processing scripts for nesting

#1 Unread post by MaximeDebert »

I'm trying to create a refinement grid using Matlab script coarse2fine.m. The coarse grid has spherical coordinates which leads to this error (when using coarse2fine.m):

Error in coarse2fine (line 421)
Rr = TriScatteredInterp(C.x_rho(:),C.y_rho(:),C.f(:),method);


Since the coordinates are in longitude and latitude there is no x_rho nor y_rho in the coarse grid. I'm wondering if the coarse to fine interpolation shouldn't be done in terms of spherical coordinates (lon_rho, lat_rho)?

Post Reply