GithubHelp home page GithubHelp logo

Comments (11)

jmbeckers avatar jmbeckers commented on July 25, 2024

from divand.jl.

ctroupin avatar ctroupin commented on July 25, 2024

@Alexander-Barth : might be similar to an issue mentioned (by mail) by Orjan.
Let's keep it in mind for the present issue.

from divand.jl.

jmbeckers avatar jmbeckers commented on July 25, 2024

Was'nt that solved with the optional arguments
coeff_laplacian::Vector{Float64} = ones(ndims(mask)),
coeff_derivative2::Vector{Float64} = zeros(ndims(mask))
in divandrun ? Needs to be documented in function description and example ?

from divand.jl.

jmbeckers avatar jmbeckers commented on July 25, 2024

Normally solved since version 2.3.1 with optional parameter coeff_derivative2 = [0., 0., 0.0000001]

from divand.jl.

JianghuiDu avatar JianghuiDu commented on July 25, 2024

Is there a guideline on what's the best value to use? The docs say 1e-8, but it makes the results too smooth. If it's too low then it doesn't work. The RMS always increases with this number so there's the conflict between fitting the data and removing this anomaly. What would be the "objective" choice?

from divand.jl.

jmbeckers avatar jmbeckers commented on July 25, 2024

Can you provide some more details on the situation ? Normally the parameter should only have an effect in particular situations for isolated points in a topology like

1 1 1 1 1 1 1 1 1
0 0 0 1 0 0 0 0 0 <- the sea point 1 in land 0
0 0 0 0 0 0 0 0 0

from divand.jl.

JianghuiDu avatar JianghuiDu commented on July 25, 2024

See the extreme values in the circle. The interpolated values is very different from the surrounding data..
This is the original
Untitled

This is with [1e-8,1e-8] for both lon and lat.
1e-10

This is 1e-6, too smooth.
1e-6

So this parameter does not only affect those points close to topography but also everywhere else, right?

from divand.jl.

jmbeckers avatar jmbeckers commented on July 25, 2024

yes it acts everywhere but normally with low values its effect should be completely overshadowed by the normal regularity constraint away from boundaries controlled by the length scales. So what is the correlation length you selected and the grid spacing as well as the epsilon2 parameter ?

from divand.jl.

JianghuiDu avatar JianghuiDu commented on July 25, 2024

correlation length: 1e6 m
grid spacing: 4 deg by 4 deg
epsilon: 0.001, should probably be bigger.

I just wonder what criteria should be used to choose this parameter.

from divand.jl.

jmbeckers avatar jmbeckers commented on July 25, 2024

epsilon: 0.001, should probably be bigger.

Yes I think that is the culprit. You are trying to pass almost exactly a curve across a noisy set of data some of which almost at the same location; that certainly will create you a lot of artefacts.

Also the grid spacing of 4x4 degrees only marginally resolves the correlation length of 1000km which can cause other problems.

I would not try to fix that with the parameter coeff_derivative2 which is only there to add a very weak additional regularity constraint on cases as depicted in #20 (comment)

from divand.jl.

JianghuiDu avatar JianghuiDu commented on July 25, 2024

OK. Thanks for the explanation.

from divand.jl.

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.