Comments (3)
Hi Drak,
I'm not sure what you mean by coordinate error and why the triangles should look like that in Blue Kenue...
I ran your script with the gshhs shoreline and the grb bathymetry and the coordinates were fine.
What I'm seeing here is actually a problem with the interpolation of the bathymetry. When you use the gdat to interpolate sometimes it can miss the corners because the point is just outside of the extracted bathy data. A simple way to avoid this is to use the 'nan','fill' option, i.e.,
m = interp(m,gdat,'nan','fill');
or you can just interpolate directly from the dem:
dem = 'gbr100_16jan.nc';
m = interp(m,dem);
When the dem is used to interpolate it will extract the region of interest from the dem with a buffer region so it will not have issues at the corners.
I noticed an issue with using the grb bathymetry to interpolate directly due to the y-coordinates being in the upside down direction - I will need to make sure it works for this case too.
from oceanmesh2d.
Thanks for getting back to me so fast!
Yes interpolating directly from the DEM solved the issue.
FYI, with Blue Kenue it appears that when it ingests the .14 format it doesn't pull in the coordinates properly if the elevation isn't there/ is not what it's expecting.
Great job with the module though, it is taking me a fraction of the time to make some nice mesh's.
from oceanmesh2d.
Yeah that's interesting about Blue Kenue, I figured something like that but the default bathymetry is usually just zero so I didn't think that a bathymetry value of zero would cause such a strange visualization.
Anyway, great to hear it worked and looking forward to seeing more meshes.
from oceanmesh2d.
Related Issues (20)
- Mark to be removed triangles when using Fix_single_connec_edge_elements.m
- Additional package for converting .mat msh object into Telemac input files (slf and cli) HOT 4
- Thalweg data format HOT 1
- Error setup.sh link m_map HOT 1
- Get stuck in using Cal_IT_Fric. HOT 13
- extra lines in fort.15 file! HOT 7
- make animation for fort.63.nc HOT 10
- meshgen.build Exiting early HOT 2
- Infinite loop when cleanup the mesh HOT 6
- Issue with using dynamic water level correction HOT 11
- Need for rapid changes in grid resolution HOT 4
- Issues with refining mesh in channels HOT 2
- Problem making fort.15 file for ADCIRC model in OceanMesh2D HOT 2
- Problem creating fort.13 file for ADCIRC model in OceanMesh2D HOT 3
- startup.sh HOT 2
- Issue regarding input files of ADCIRC model HOT 2
- How to specify the wind control and wind timestep parameters in Make_f15 function of OceanMesh2D? HOT 1
- How to make the fort.22 file for ADCIRC model? HOT 2
- Re-meshing patches function
- How to make a fort.15 file for NWS = 30 Blended GAHM & Background Gridded Wind and Pressure?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oceanmesh2d.