GithubHelp home page GithubHelp logo

s.obsout and moddim about divand.jl HOT 11 CLOSED

gher-uliege avatar gher-uliege commented on August 28, 2024
s.obsout and moddim

from divand.jl.

Comments (11)

jmbeckers avatar jmbeckers commented on August 28, 2024

To exclude a possible explanation for the problem can you use alphabc=0 in the parameters and check if the problem remains ?
Thanks

from divand.jl.

jmbeckers avatar jmbeckers commented on August 28, 2024

To exclude a possible explanation for the problem can you use alphabc=0 in the parameters and check if the problem remains ?
Thanks

from divand.jl.

JianghuiDu avatar JianghuiDu commented on August 28, 2024

I wonder if its a problem with sparse_interp

I = localize_separable_grid((eNdint.lon,eNdint.lat,eNdint.w_depth), mask3d, grid)

H, out = sparse_interp(mask3d, I, [true,false,false])

Here I plot out (within the red rectangular, the others are masked because of bathymetry). Even with iscyclic = [true, false, false], the observations are still masked out. I read the code and I didn't find any mention of moddim there.

Untitled

from divand.jl.

jmbeckers avatar jmbeckers commented on August 28, 2024

I tried on a simple case

if the data point is in the domain (not taking into account periodicity) everything is ok

if the data points is out of the domain (say -10 if you define your grid between 0 and 360) then it is not taken into account.

So what is the grid definition ?

from divand.jl.

JianghuiDu avatar JianghuiDu commented on August 28, 2024

lon = 2.0:4.0:358; lat = -88.0:4.0:88.0
The lon of the masked data are between 358 and 360 OR between 0 and 2. My lon data are all in the range of 0~360. There's no negative numbers.
This plot is better because now I have removed bathymetry mask.

Untitled

from divand.jl.

JianghuiDu avatar JianghuiDu commented on August 28, 2024

Maybe its related to localize_separable_grid which appears to have a strange behavior. It returns negative numbers for observations as long as only one dimension is outside the grid range. When calling I in sparse_interp, setting iscyclic = true only modifies that dimension. For example, if an observation is outside lon grid but still within lat and depth grids, it gets a negative I in all 3 dimension, and in sparse_interp setting lon as cyclic only modifies the I in lon dimension, while the other two dimensions are still negative. Shouldn't in such a case all three dimensions be modified to bring the point inside?

from divand.jl.

Alexander-Barth avatar Alexander-Barth commented on August 28, 2024

Thanks a lot for your analysis. This is exactly the issue. I am now testing a fix for this problem.

from divand.jl.

Alexander-Barth avatar Alexander-Barth commented on August 28, 2024

Can you try the new master branch?

from divand.jl.

JianghuiDu avatar JianghuiDu commented on August 28, 2024

Yes, It's fixed. Thanks!

from divand.jl.

JianghuiDu avatar JianghuiDu commented on August 28, 2024

A related question. Are the observations outside the grid domain used in the analysis?

from divand.jl.

jmbeckers avatar jmbeckers commented on August 28, 2024

Observations outside of the grid are not used for the analysis (neither are observations that fall on land defined by the mask). What can happen is that some of the auxiliary tools doing statistics on the data might not check if the points are on the domain or not but the analysis itself excludes the points falling outside.

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.