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

[DOC] Correct bounds for v in RectSphereBivariateSpline #6612

Closed
wants to merge 1 commit into from

Conversation

sriki18
Copy link
Contributor

@sriki18 sriki18 commented Sep 22, 2016

This is a fix for #6556 . I changed the SciPy documentation to reflect the actual functionality of fftpack.

@@ -1529,7 +1529,7 @@ class RectSphereBivariateSpline(SphereBivariateSpline):
(0, pi).
v : array_like
1-D array of longitude coordinates in strictly ascending order.
Coordinates must be given in radians, and must lie within (0, 2pi).
Coordinates must be given in radians, and must lie within (-pi, pi).
Copy link
Member

@person142 person142 Sep 23, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't quite right--the FITPACK documentation requires that

  • -pi <= v[0] < pi
  • v[i] < v[i+1] (the strictly ascending bit)
  • v[-1] <= v[0] + 2*pi.

(Changed the indexing from the documentation for python conventions.) So for example in #6556 the test case

>>> u = np.linspace(1, 3)
>>> v = np.linspace(np.pi - 1e-6, 6)
>>> r = np.zeros([u.size, v.size])
>>> RectSphereBivariateSpline(u, v, r)

works fine even though 6 is not in the interval (-pi, pi).

@rgommers rgommers added Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org scipy.interpolate labels Sep 25, 2016
@ev-br ev-br added the needs-work Items that are pending response from the author label Sep 30, 2016
@person142
Copy link
Member

@sriki18 I wonder if you're planning to continue to working on this? No pressure, just don't want it to slip into the mists of time.

@sriki18
Copy link
Contributor Author

sriki18 commented Oct 3, 2016

Hi, Sorry I didn't catch your earlier comment. I am going to have a busy week and will have a go at it if I find the time. I should definitely find time by Friday. If you would prefer to work on it in the mean time, please let me know. Thanks!

@person142
Copy link
Member

Sounds great. No rush, just wanted to make sure you were still interested.

@sriki18
Copy link
Contributor Author

sriki18 commented Oct 8, 2016

Working on this at the moment.

@pv
Copy link
Member

pv commented Oct 8, 2016

superceded by #6665

@pv pv closed this Oct 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Issues related to the SciPy documentation. Also check https://github.com/scipy/scipy.org needs-work Items that are pending response from the author scipy.interpolate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants