Merge "Issue #1260 Added an extra grid cell around the slab to improve interpolation results." into development

Former-commit-id: e65b1a378d8eff3df100953c800512b5f9c5c90f
This commit is contained in:
Ron Anderson 2012-11-02 14:48:06 -05:00 committed by Gerrit Code Review
commit aae03ce3f8

View file

@ -353,10 +353,12 @@ public class NetCDFUtils {
yindex.add(igc.y); yindex.add(igc.y);
} }
int xmin = Collections.min(xindex) - 1; // find min/max plus a little extra for so interpolation doesn't have
int xmax = Collections.max(xindex) + 1; // edge effects
int ymin = Collections.min(yindex) - 1; int xmin = Collections.min(xindex) - 2;
int ymax = Collections.max(yindex) + 1; int xmax = Collections.max(xindex) + 2;
int ymin = Collections.min(yindex) - 2;
int ymax = Collections.max(yindex) + 2;
xmin = Math.max(0, xmin); xmin = Math.max(0, xmin);
ymin = Math.max(0, ymin); ymin = Math.max(0, ymin);