Replies: 1 comment 3 replies
-
Boundaries to 3d models are a bit of work to get right, are you aware of https://www.mikepoweredbydhi.com/products/mike-cloud/mike-data-link which handles this for you? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've got one netcdf file with HYCOM data with 3d variables in it: u, v, salinity and temperature and 2d variable 'water level'. Also the water depth is stored in that file. Timestep is 3hr, and 40 depth layers, 23 lon values and 20 lat values (resolution 0.08 deg).
Using xarray, I can do all sorts of interpolations in time, depth and geographic space,
Furthermore, I have a mesh of my MIKE3 model and an empty 3D dfsu file with all the items needed as a base to create initial conditions and boundary conditions. I'm able to find the boundary points in themes and interpolate the hycom data to these points. This procedure worked well for a MIKE21 boundary and initial conditions.
So in theory, it should be easy to go from HYCOM structure to MIKE3 structure, create a mike dataarray, combine into dataset and export as dfsu file.
However, I don't know the depths of the depth sigma layers in this file and am a bit stuck in creating the 3d mike dataarrays with the right dimensions, time axis, vertical layers, and access the values in those 3d dataarrays. Could someone point me out to how to work this out further?
I'm almost there, but miss a little guidance to make the last steps.
Thanks,
Kind regards,
Marco
Beta Was this translation helpful? Give feedback.
All reactions