Replies: 3 comments 1 reply
-
Dear @jwongala, what you report is an |
Beta Was this translation helpful? Give feedback.
-
Dear @jwongala -- would you mind posting the "ncdump -h hioekg_forec_20190101.nc" output from your ROMS files? I would not expect to find variables or dimensions with names like "lon" or "lat" in ROMS output. Since it is on a C-grid, the names should be in the form of "eta_rho" and "xi_rho" or "lon_rho" and "lat_rho", and there should be one set of grids for each of rho, u, and v. Also, are you using some custom variant of ROMS? Or have you regridded the data onto an A-grid? This will cause many problems. Jamie |
Beta Was this translation helpful? Give feedback.
-
This has been regrided onto an A-Grid, where u and v velocities have been put on the same coordinate grid. You should not use the c-grid formulations like NEMO, but you should instead look at one of the examples where the velocities are all at the same location. Note that you only have the horizontal velocities, which will limit you to tracking horizontal motions. This does not solve the source of your original error message, which has to do with the fact that "lon" and "lat" are both the name of a dimension and the name of a variable. You can fix this by following the advice in https://stackoverflow.com/questions/55109481/how-to-import-netcdf4-file-with-xarray-when-index-names-have-multiple-dimensions |
Beta Was this translation helpful? Give feedback.
-
Question
Hello! I am trying to load in ROMS files (curvilinear, z layers) and I am getting the below error and I am not sure how to get around this and proceed. Any help is much appreciated!
Here is a link to download the ROMS file I am trying to load in the code.
Code
Error message
Beta Was this translation helpful? Give feedback.
All reactions