question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

To_spherical phi probleme

See original GitHub issue

Hi, (first of all skyfiled is awesome, thank you very much). It seems that there is a problem with the calculation of phi in the to_spherical function (function.py line 85). when calculating I have a :

...skyfield/functions.py:85: RuntimeWarning: invalid value encountered in remainder
  phi = arctan2(y, x) % tau

I tried to add _AVOID_DIVIDE_BY_ZERO to tau or x but not improvement so far…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
aerodynamics-pycommented, Jan 30, 2022

1.22 on ubuntu and 1.21 on the pi. Might be the root cause. I’m going to update and see if it’s ok.

0reactions
brandon-rhodescommented, Mar 18, 2022

Thanks for the update, after thinking about the issue some more, my guess is that indeed there is nothing that Skyfield can do here that would be terribly useful. I’ll go ahead and close the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Triple integrals in spherical coordinates (article) | Khan Academy
Converting to spherical coordinates can make triple integrals much easier to work out when the region you are integrating over has some spherical...
Read more >
Solved Problem 3 The change to spherical coordinates can be
Question: Problem 3 The change to spherical coordinates can be thought of as a function from (r,theta, phi) to (x, y, z) defined...
Read more >
Converting from Cartesian (x,y,z) to Spherical (ρ,θ,φ) - YouTube
Video showing how to convert from the Cartesian coordinate system to the Spherical coordinate system, with a derivation of the formulas to ...
Read more >
Evaluate By Changing to Spherical Coordinates - YouTube
This triple integral example shows specifically the usefulness of circular cones just being specific phi values. Since rho goes radially out ...
Read more >
Spherical Coordinates -- from Wolfram MathWorld
Define theta to be the azimuthal angle in the xy-plane from the x-axis with 0<=theta<2pi (denoted lambda when referred to as the longitude),...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found