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.

Invalid values during Coordinate conversion.

See original GitHub issue

🐞 Problem When converting from Cartesian to BL, we may run across a divide by zero error as discussed in #343. The same error can also be encountered when converting from Cartesian to Spherical with all x, y, and z zero.

💡 Possible solutions

📋 Steps to solve the problem

  • Comment below about what you’ve started working on.
  • Add, commit, push your changes
  • Submit a pull request and add this in comments - Addresses #<put issue number here>
  • Ask for a review in comments section of pull request
  • Celebrate your contribution to this project 🎉

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
shreyasbapatcommented, Dec 12, 2019

Change the implementation to this solves this.

def cart2sph(x, y, z):
    hxy = np.hypot(x, y)
    r = np.hypot(hxy, z)
    theta = np.arctan2(z, hxy)
    phi = np.arctan2(y, x)
    return r, theta, phi
0reactions
shreyasbapatcommented, Jan 4, 2020

Fixed in #351

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid result in coordinate transformation [closed]
1 Answer 1 ... 2) It also appears that your "flat Easting coordinate" value i.e., 1677500 looks off. Perhaps the correct value was...
Read more >
Coordinate Conversion is auto correcting invalid input ...
Enter the following invalid coordinate: 45 300s|100 30.0w. The tool auto corrects the 300s to 5 minutes and creates the following output:
Read more >
001293: Coordinate conversion failed for <value> records.
Any record in the input table with invalid notation is not converted to a valid point in the output table. Solution. Check the...
Read more >
Troubleshooting - Blue Marble Geographics
If the output coordinates seem invalid, check to make sure your input and output coordinate system definitions are appropriate, and that the format...
Read more >
How To: Identify and fix when the Add XY Data tool does not ...
Reason: The Add XY Data tool must know what the original coordinate system was during the point collection in order to properly plot...
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