I am currently experimenting with the generation of grid.nc using two different toolkits (coawst and roms-web). But I noticed a significant disparity in the values of pm and pn obtained from these two sources. I then stick some steps briefly to show how I generated pm and pn below. (lon and lat at rho, u, v, psi points generated by two toolkits are same )
using coawst:
Code: Select all
eval(['mat2roms_mw(''temp_grid.mat'',''',roms_grid,''');'])
Code: Select all
G.ncname = roms_grid;
G.lon_rho = ncread(roms_grid,'lon_rho');
G.lat_rho = ncread(roms_grid,'lat_rho');
......
S = roms_metrics(G);
mean of pm using coawst = 3.6492e-07;
mean of pn using coawst = 5.5690e-08;
mean of pm using roms_metrics = 2.2567e-04;
mean of pn usingroms_metrics = 2.2561e-04;
I am confused why so big error. Which one is right?