Closed jporobicg closed 2 years ago
Thanks for this question, @jporobicg. We stopped supporting the gitter channel last year; didn't realize there is still activity on it...
Anyways, one reason could be that the velocities that Parcels calculates are 'true' zonal and meridional, while they are in the i
- and j
-direction in netcdf files. If a grid is rotated, these are not the same. See also the discussion in our parcels v2.0 paper and the Nemo Curvilinear tutorial.
Hi @erikvansebille Thanks a lot for the answer and the information; due to the grids' transformations, I will not compare the velocities from OceanParcels and our hydrodynamic model. However, you were right; although the magnitudes of the velocities were similar, the values of U and V between the two models are different, which makes me think that the rotation of the grids caused it (fig 1).
I did compare the particle position and the velocities coming from the hydrodynamic model, and I expected that the direction in which the particles move and the direction of the currents coincide. I understand they won't be the same due to the Runge-Kutta integration, but I didn't expect them to be so different. Am I doing something wrong, or am I not understanding something? (fig2)
Good to see that magnitude in your top plot does agree, that supports my hypothesis that the mismatch between 'U' and 'V' in the GRB1 input and the parcels-output is because of the rotated grid
The same hypothesis could explain the mismatch in the lower figure. You have plotted the quivers on a lat/lon coordinate system, but they should be plotted on the (rotated) grid. See e.g. Figure 6 of the tutorial here for an example how such a grid can be rotated. From looking at the bottom figure, your GRB1 grid is probably oriented approx 45 degrees clockwise?
Hi Everyone, I've not been successfully validating the output from OceanParcel with the hydrodynamic. When I'm comparing the velocity field from the hydrodynamic and the velocity coming from OceanParcel, they don't match. In fact, the particle movement, the velocity (direction) from OP and the velocity from the hydro model are all different (see attached figure). My hydrodynamic model uses a curvilinear c-grid, so I'm using FieldSet.from_nemo. I guess I'm doing something wrong, I got help from the Gitter OP community, but we could not find the problem. I was expecting to have differences but not so big. I'm using the following code to save the U and V that particle 'feels' at each time step.
Fig1. Comparison of the direction of the velocities of OceanParcels and the hydrodynamic model. a) only de direction; b) direction at particle location Any help will be welcome. Thanks in advance.