Open kingkong-cmd opened 1 month ago
GetWindAt should returns degrees, I fixed it.
Regarding the second problem, can you please code a minimal example reproducing the issue?
Not sure what code to show, since it was basically just following the example in docs. But maybe it was not the concurrency, but instead my incorrect use of (lon, lat) that messed up the twds. If its working for you its probably just a me-problem.
I wasn't saying I'm not having the problem (I didn't tried the example in the docs); but if you provide me the code you are running I can verify if it happen in my env, and if so I'm able to fix and verify it.
Ok, I will try to reproduce and get back to you. PS. I didn't mean literally following the example, since I used my own getwindat, and a self made track when this happened.
Oki thanks; anyway, try to reduce your code to the minimum needed to reproduce the issue (y)
Hi,
I've been playing around with this a bit, but got a bit confused about the
getWindAt()
function. It says in "docs" thattwd
should be inradians
, but then I see this code where you usemath.radians(twd)
on the twd returned fromgetWindAt()
.math.radians()
converts degrees to radians, no?Secondly, even if i change getWindAt to return
twd
indegrees
, thetwd
in theIsopoint
in the results are really small (like e-37) which makes me think there might be something wrong with the concurrency where it recursively doesmath.radians(twd)
until it becomes really small in the end.Any chance you are willing to take a look?