def test_average_size5(self):
     averaged_data = raster_average.filter_center(self.data,
                                                  size=5,
                                                  no_data_val=1000.0,
                                                  func=np.nanmean)
     np.testing.assert_array_almost_equal(averaged_data,
                                          self.expected_average_5)
    def test_average_size3_5x4(self):
        averaged_data = raster_average.filter_center(self.data_5x4,
                                                     size=3,
                                                     no_data_val=1000.0,
                                                     func=np.nanmean,
                                                     mask_no_data=True)

        np.testing.assert_array_almost_equal(averaged_data,
                                             self.expected_average_3_5x4)