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

iris.analysis.PERCENTILE fails with TypeError in scipy mquantiles #624

Closed
munslowa opened this issue Jul 19, 2013 · 2 comments
Closed

iris.analysis.PERCENTILE fails with TypeError in scipy mquantiles #624

munslowa opened this issue Jul 19, 2013 · 2 comments

Comments

@munslowa
Copy link
Contributor

Collapsing a 3 dimensional cube (time, grid_lat, grid_lon) over 'time' using the aggregator PERCENTILES results in a TypeError being reported from mquantiles.

raise TypeError("Array should be 2D at most !")

@munslowa
Copy link
Contributor Author

Example script to reproduce problem:

import iris

dir = '/home/andrew/git/iris-test-data/test_data/NetCDF/global/xyt/'
file = 'SMALL_hires_wind_u_for_ipcc4.nc'

cube = iris.load_cube(dir+file)

print cube

result = cube.collapsed('time', iris.analysis.PERCENTILE, percent=90)

print result

@ajdawson
Copy link
Member

Fixed by #625.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants