anderdyl / objectiveMapping

functions to combine different FRF surveys into an integrated topo map
1 stars 0 forks source link

why do these have to get stacked? #1

Closed SBFRF closed 4 years ago

SBFRF commented 4 years ago

https://github.com/anderdyl/objectiveMapping/blob/3acff88eaaf07c048c80831be33243ec9cc52c0d/objMapPrep.py#L38

hey dylan why do these have to get stacked? if i'm understanding correctly, when the data are not square, (ie y is longer than x) this line fails.

anderdyl commented 4 years ago

Hmm, you shouldn't ever pass that different lengths of x and y ... that is all x's and all y's being collapsed to a format needed for the "contains_points" function below in the code. in other words that is making a 2xN array where N is all points in the data. Sounds like you have an x and y vector that are the edge of the matrix, prior to meshgrid?

SBFRF commented 4 years ago

fixed!