Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Artefact with Rasters #171

Open
ThomasAuriel opened this issue Jun 8, 2023 · 1 comment
Open

Artefact with Rasters #171

ThomasAuriel opened this issue Jun 8, 2023 · 1 comment

Comments

@ThomasAuriel
Copy link

When using GeoMakie with Rasters.jl, I have artifacts on the final figure.

There is a line continuing the value from -180 to 180. It happens with contourf function but also, and more surprising, with surface function.
output_2020-01-01T00:00:00

Here is the code I'm using:

        val = ds[:,:,1]

        fig = Figure()
        
        ax = GeoAxis(fig[1,1]; aspect = DataAspect(), title=title, dest = "+proj=robin", coastlines = true)
        p = surface!(ax, val; colormap= :darktest, shading = false, colorrange=(-40,40),  interpolate=false)
        cb = Colorbar(fig[1, 2], p, label=string(product.unit))
        cb.alignmode = Mixed(right = 0)

        ax = GeoAxis(fig[2,1]; aspect = DataAspect(), title=title, dest = "+proj=robin", coastlines = true)
        p = contourf!(ax, val; colormap= :darktest, shading = false, colorrange=(-40,40), interpolate=false)
        cb = Colorbar(fig[2, 2], p, label=string(product.unit))
        cb.alignmode = Mixed(right = 0)

        resize_to_layout!(fig)
        save(filepath, fig)

I'm not sure it's the same issue than this ticket : #119

@asinghvi17
Copy link
Member

Looks like something similar. I'm not sure if this is still an issue with the current Float64 handling?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants