예제 #1
0
 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)
예제 #2
0
 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)