def test_cell_2_ind_03(self): raster = PRaster(infolder + "/small25.tif") rows = self.rows.tolist() cols = self.cols.tolist() ids = self.ids cids = raster.cell_2_ind(rows, cols) self.assertEqual(np.array_equal(ids, cids), True)
def test_cell_2_ind_02(self): raster = PRaster(infolder + "/small25.tif") row = 25 col = 11 ids = 4986 cids = raster.cell_2_ind(row, col) self.assertEqual(ids, cids)