Skip to content
This repository was archived by the owner on Mar 6, 2025. It is now read-only.
This repository was archived by the owner on Mar 6, 2025. It is now read-only.

Boundary leakages when using regional wind_data #10

@jcfbeardsley

Description

@jcfbeardsley

Hi @zakjan,

Firstly, great work on developing this repo! Thanks for all your efforts, this is a really cool tool.

In my most recent testing, I noted that you have exposed the bounds and textureParameters to enable the use of wind data with limited spatial coverage. This works well for the intended area when you swap GL.REPEAT for GL.CLAMP_TO_EDGE, but I'm seeing some weird 'leakages' beyond the specified bounds (see one large leakage in the north and two smaller leakages in the east of this demo here). In this case the wind data is just cropped and upscaled version of the 0.25 deg GFS model for testing. Any ideas what might be going on here and how it could be resolved?

Also for your own reference, I had issues when generating the data PNG using the repo instructions. Omitting the blue channel was generating an image with gdal_translate that had alpha transparency which wasn't working in WebGL, but looking at your sample wind data I could see that the blue channel was just set the same as green. To work around this, I changed the gdalbuildvrt command to specify the v data to the blue channel as well, i.e.:

gdalbuildvrt -separate wind_data_world.vrt u.grib v.grib v.grib

Then the gdal_translate function (and WebGL) worked as expected. This may be a change with the latest release of GDAL?

Cheers,
J.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions