ICATMAR / HFRadar

1 stars 0 forks source link

Improvement animation #87

Closed gerardllorach closed 7 months ago

gerardllorach commented 7 months ago

Improved rendering performance and changed how the particles are updated for the combined radar.

The zoom affects how the particles are rendered (further away, the path is longer - closer the path is shorter in terms of lat long).

There was an error with the update loop of the particles. the life of a particle depended on the velocity value. this was wrong, as the path of the particle changed distance according to the speed. Therefore the velocity was used twice in a particle (in the path and in the draw update - life).

Also added triangular interpolation when there are three data points close to a grid cell.

Tuv files do not have QC (some points had 2000 cm/s. A line of code was added to prevent this outliers. In the future geojsons should be used.

Some of the variables of the particle system are linked. For example, the zoom changes how long the path of a particle is (how long it stays on screen). To avoid linking many variables, such as particle speed, number of particles, step in lat long... I decided that these variables should be adjusted manually. In case the user had the option to reduce the number of particles or other parameters, this interlink between variables should be looked at.

gerardllorach commented 7 months ago

Rendering speed improved x3

image image