Re: subdividing a rectangle using numpy

2015-09-11 Thread Laura Creighton
I think pyeuclid will do what you want. https://pypi.python.org/pypi/euclid Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: subdividing a rectangle using numpy

2015-09-10 Thread Nobody
On Thu, 10 Sep 2015 22:05:07 -0500, Seb wrote: > The key to my solution was to use numpy's meshgrid to generate the > coordinates for defining the sub-units. However, it seems awfully > complex and contrived, Half a dozen lines of code is "complex and contrived"? Also, you should lose marks for

subdividing a rectangle using numpy

2015-09-10 Thread Seb
Hello, The code below is what I came up with to solve the problem: 1. We're given geographic coordinates for two opposite vertices of a rectangle. 2. If any of the sides of the rectangle is larger than some number of degrees, then subdivide the rectangle into squares/rectangles such that