Forum > Other

Weather forecasting in Pascal

<< < (5/5)

SymbolicFrank:

--- Quote from: MarkMLl on April 11, 2022, 09:19:50 pm ---
--- Quote from: SymbolicFrank on April 11, 2022, 10:57:08 am ---And we do have an OpenGL subforum, if you want animation ;)

--- End quote ---

Does that help for getting a GPU to do interpolation etc.?

I'm obviously familiar with the basic concept but not how it can be implemented.

As it is, I'm not setting my sights too high since I'm keenly aware of the limited resolution: colouring by temperature or pressure will probably be OK, but landmass outlines and frontal overlay might be a problem.

MarkMLl

--- End quote ---

After setting up OpenGL (dropping an TOpenGLControl on a form), you have to create a scene and a viewport. The scene (model) can be a flat surface, but also a sphere. And the viewport is how you look at it. The OpenGL tutorial explains it all (but you only need the first part). You can color the surface and you can add textures (like the landmass). After that, you need a shader, which is basically a small C program that is executed for each pixel, to color it.

For the fronts, vectors and text on top, you make a second surface, that hovers on top of the first one. You can draw on that.

MarkMLl:

--- Quote from: winni on April 11, 2022, 11:14:32 pm ---I think: Make the first step before the next. I surfed a little bit around and I think it will be a problem to find a site to download the worldwide isobaric or temperature data. Everybody makes a secret of that and presents only their maps with low, high and the fronts.

--- End quote ---

As per my OP https://github.com/cambecc/earth See "Getting weather data".

That's described as being of the order of 300 records, and obviously it needs a lot of interpolation.

MarkMLl

MathMan:

--- Quote from: MarkMLl on April 09, 2022, 01:49:39 pm ---Allowing for the ready availability of the station data that underpins e.g. https://earth.nullschool.net/#current/wind/isobaric/850hPa/orthographic and the limited availability of analysis charts that overlay fronts onto observations e.g. https://www.met.ie/latest-reports/surface-analysis , has anybody ever come across Pascal code which attempts to locate the major frontal systems and describes them as e.g. Beziers?

MarkMLl

--- End quote ---

I tried to follow what is presented under the links you gave and what you might be looking for. To answer your question - no, I have not come across Pascal code doing what you seem to be looking for. But from the outset this looks like it might be solvable with contouring algorithms (considering how it is described under your second link). There is even one implemented in TAChart afaik. But there are several types of these and the final translation to e.g. Beziers would still reside with you I think.

Cheers,
MathMan

MarkMLl:

--- Quote from: MathMan on April 12, 2022, 03:52:20 pm ---...the final translation to e.g. Beziers would still reside with you I think.

--- End quote ---

In any event, it's likely to be "interesting" on lots of fronts: irregular data which needs interpolating, contour approximation, feature extraction following contours, and a display device where (I suspect) the pixel size varies depending on the coordinates.

MarkMLl

Navigation

[0] Message Index

[*] Previous page

Go to full version