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 with missing values in mesh broken. #1730

doutriaux1 opened this issue Dec 10, 2015 · 0 comments

meshfill with missing values in mesh broken. #1730

doutriaux1 opened this issue Dec 10, 2015 · 0 comments


Copy link

@doutriaux1 doutriaux1 commented Dec 10, 2015

Blue one should be a triangle (only 3 vertices) others are ok with 4 vertices.

We are picking the 4th vertice as not missing

import numpy
import vcs


data_values = [ 25, 45, 55.]

data_lon = [ 5., 10., 15.]
data_lat = [ 5., 10., 15.]

data_lon_vert = [ 
        # Triangle (last one missing because traingle has only 3 vertices
        # Square
        # Diamond

data_lat_vert = [
        # triangle
        # square
        # diamond

mesh = numpy.array([data_lat_vert,data_lon_vert])
print "MESH SHAPE:",mesh.shape,mesh.dtype
mesh = numpy.transpose(mesh,(1,0,2))
print "MESH SHAPE:",mesh.shape
mesh =,1.e19)

print "Triangle lats:"
print mesh[0][0]
print "Triangle lons:"
print mesh[0][1]
m = x.createmeshfill()
m.mesh = True

raw_input("press enter")


@doutriaux1 doutriaux1 self-assigned this Dec 10, 2015
@doutriaux1 doutriaux1 added this to the 3.0 milestone Dec 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant