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

[Bug]: Issue with dynamic plots in plotBehaviour #91

Closed
thomaspibanez opened this issue Aug 14, 2024 · 3 comments · Fixed by #93
Closed

[Bug]: Issue with dynamic plots in plotBehaviour #91

thomaspibanez opened this issue Aug 14, 2024 · 3 comments · Fixed by #93
Labels
bug Something isn't working

Comments

@thomaspibanez
Copy link
Collaborator

What happened?

When the storm overlap with 180E their is an issue with the display of the wind fields using the dynamic plot option in the plotBehaviour function.

Minimal Complete Verifiable Example

library(StormR)

sds <- defStormsDataset("/Users/ibanezthomas/Documents/IBTrACS.SP.v04r01.nc",
                        basin="SP")

sds <- defStormsList(sds,loi="Fiji",maxDist = 500, names = "WINSTON")

plotStorms(sds)
plotStorms(sds)

ss <- spatialBehaviour(sds, product = "MSW", verbose = 0)

plotBehaviour(sds,ss)

plotBehaviour(sds,ss, dynamicPlot = T)

Propose a solution

No response

Anything else we need to know?

No response

Environment

@thomaspibanez thomaspibanez added the bug Something isn't working label Aug 14, 2024
@thomasarsouze
Copy link
Contributor

I can reproduce the bug, thanks for spotting that.

I can't dedicate time for this right now. Maybe @BaptisteDlp knows a simple and quick way to correct this ? Otherwise I'll look at it after holiday break...

@thomasarsouze
Copy link
Contributor

Just before leaving...

this is probably the same issue as rstudio/leaflet#225. Although, quite old this issue is still open and I didn't find any mention of a better solution. Original mention of this issue at r-spatial/mapview#6 (comment)

@thomaspibanez I suggest you test this if you need a workaround before I can fix the issue.

@BaptisteDlp
Copy link
Collaborator

I have not found any solutions yet. I think it requires some tricks to rebuild the raster around the 180E limit in order to handle the overlap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants