Coder Social home page Coder Social logo

Comments (3)

mo-cbat avatar mo-cbat commented on July 28, 2024 1

@lbdreyer Right, so I've contacted EUMETSAT and we've deduced that the space view GRIB files that they produce have actually got the wrong values set for (Xo, Yo). Currently they are set to (0, 0), but they should be (1, 1). With the correct values there is no mismatch with the coastlines when plotting using Scitools.

So in conclusion, this pull request is wrong and I'll close it, and Iris is great and works perfectly! Keep up the great work :D

from iris-grib.

lbdreyer avatar lbdreyer commented on July 28, 2024

I'm struggling to understand your example so I've tried to draw a diagram to check if this is what you mean:

image

As I understand there should be two grids: (i) the one that represents the visible full Earth's disk and (ii) the one that represents the sector image. In the above image, the full Earth grid (i) is represented by a 5x5 grid, but the sector image grid (ii) that may be contained in a GRIB file only covers part of the full grid - a smaller 3x3 grid.

The origin of the sector image (Xo,Yo) is at (0,0) (denoted by a yellow circle in the above image.
The Sub satellite location (Xp, Yp) is at (2, 2) (denoted by a yellow cross), which is the centre of the full Earth grid

From, the above diagram, I would have thought a start coordinate of -2 was correct?

from iris-grib.

mo-cbat avatar mo-cbat commented on July 28, 2024

Thanks very much for that @lbdreyer! Your example is far better than mine :)

I think the key issue here is that the first cell in grid (i) should be (1, 1), whereas it is (0, 0) in grid (ii). At least that is how I understand the contents of the space view GRIB files that EUMETSAT produce (I'm not aware of any other centres that produce such files with which I could check). So when relating grid (ii) to grid (i) you need to add 1.

I will contact EUMETSAT to see if my understanding is correct and comment here again with my reply.

from iris-grib.

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.