Giter Site home page Giter Site logo

Comments (3)

WPringle avatar WPringle commented on May 24, 2024

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.

image

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.

DrakonianMight avatar DrakonianMight commented on May 24, 2024

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.

WPringle avatar WPringle commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.