DOI-USGS / COAWST

COAWST modeling system git repository
Other
104 stars 49 forks source link

The problem about nesting #241

Open wjlyx opened 6 months ago

wjlyx commented 6 months ago

I generated contact files for the parent and subdomains using Gridbuilder, but encountered this error. What should I do?

Summary of Contact Regions Processed:

Grid 01: E:/COAWST_test_result/GridBuilder_grid/Sandy_roms_grid.nc Grid 02: E:/COAWST_test_result/GridBuilder_grid/Sandy_roms_grid_ref3.nc

Contact Donor Receiver Region Grid Grid

 01        01        02
 02        02        01

error contact>refinement (1547 ) C.xrg_rho = R.xi_rho (~INr);

error contact ( 327 ) [P, R] = refinement (cr, dg, rg, Lmask, G, S, MaskInterp);

error untitled (3 ) [S,G]=contact(Gnames,'E:/COAWST_test_result/GridBuilder_grid/Sandy_roms_contact.nc');

my code: Gnames={'E:/COAWST_test_result/GridBuilder_grid/Sandy_roms_grid.nc', ... 'E:/COAWST_test_result/GridBuilder_grid/Sandy_roms_grid_ref3.nc'}; [S,G]=contact(Gnames,'E:/COAWST_test_result/GridBuilder_grid/Sandy_roms_contact.nc');

jcwarner-usgs commented 6 months ago

did you use the Sandy_roms_grid.nc and Sandy_roms_gridref3.nc from the coawst distribution, or did you make those files on your own with gridbuilder? it looks like it might be that the grid files do not have the cartesian (x y) information. do the grids have the lat lon info? and do the grids have the x y_ information?