def test_CAPPI(self): gridder = vpr.CAPPI(self.xyz, self.trgxyz, self.trgshape, self.maxrange, self.minelev, self.maxelev) out = gridder(self.data) self.assertEqual(out.shape, (6084,)) # Todo: find out where this discrepancy comes from from osgeo import gdal if gdal.VersionInfo()[0] >= '3': size = 3528 else: size = 3512 self.assertEqual(len(np.where(np.isnan(out))[0]), size)
def test_CAPPI(self): gridder = vpr.CAPPI( self.xyz, self.trgxyz, self.trgshape, self.maxrange, self.minelev, self.maxelev, ) out = gridder(self.data) assert out.shape == (6084, ) # Todo: find out where this discrepancy comes from from osgeo import gdal if gdal.VersionInfo()[0] >= "3": size = 3528 else: size = 3512 assert len(np.where(np.isnan(out))[0]) == size
def test_CAPPI(self): gridder = vpr.CAPPI(self.xyz, self.trgxyz, self.trgshape, self.maxrange, self.minelev, self.maxelev) out = gridder(self.data) self.assertEqual(out.shape, (6084, )) self.assertEqual(len(np.where(np.isnan(out))[0]), 3512)