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

Meshfill plot with Mercator projection issue #1671

Open
sankhesh opened this issue Nov 10, 2015 · 2 comments
Open

Meshfill plot with Mercator projection issue #1671

sankhesh opened this issue Nov 10, 2015 · 2 comments
Assignees

Comments

@sankhesh
Copy link
Contributor

This use case currently fails. Test case provided in 9d6bed6

Run ctest -V -R vcs_test_animate_projected_meshfill_mercator

Error Reported:

File "<uvcdat>/install/lib/python2.7/site-packages/cdms2/coord.py", line 289, in subSlice
newbounds = bounds[specs]   # bounds can be a numarray or DatasetVariable
IndexError: only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
@doutriaux1
Copy link
Contributor

@sankhesh I fixed @aashish24 code so that it now passes (branch: issue_1671_meshfill_mercoator). But there is a more fundamental issue here, cdms2 does not "shrink" curvilinear grids when subsetting but rather masks out cells that are not within that range, so @aashish24 code does not help in this case.

It maybe better to copy the graphic method and set the limits ourselves, if you do so it works
in the test I add simply do:

m.datawc_y1=-85
m.datawc_y2=85

Then it works and plots:
meshfill_mercator

@doutriaux1
Copy link
Contributor

@aashish24 @chaosphere2112 @williams13 not sure how to proceed from here, suggestions welcome.

@doutriaux1 doutriaux1 modified the milestones: 3.0, 2.4 Dec 8, 2015
@doutriaux1 doutriaux1 modified the milestones: 3.0, 3.2 Mar 29, 2019
@downiec downiec removed this from the 8.2 milestone Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants