コード例 #1
0
    def test_ndvi_with_clip(self):

        bounds = [-87.48138427734375, 30.700515832683923, -87.43331909179688, 30.739475058679485]
        p = NDVI(path=self.landsat_image, dst_path=self.temp_folder,
                 bounds=bounds)
        path = p.run()
        self.assertTrue(exists(path))
        self.assertEqual(map('{0:.2f}'.format, get_bounds(path)), map('{0:.2f}'.format, bounds))
コード例 #2
0
    def test_ndvi_with_clip(self):

        bounds = [-87.48138427734375, 30.700515832683923, -87.43331909179688, 30.739475058679485]
        p = NDVI(path=self.landsat_image, dst_path=self.temp_folder,
                 bounds=bounds)
        path = p.run()
        self.assertTrue(exists(path))
        for val, exp in zip(get_bounds(path), bounds):
            self.assertAlmostEqual(val, exp, 2)
コード例 #3
0
ファイル: test_image.py プロジェクト: rcdosado/landsat-util
    def test_ndvi(self):

        p = NDVI(path=self.landsat_image, dst_path=self.temp_folder)
        print p.run()
        self.assertTrue(exists(join(self.temp_folder, "test", "test_NDVI.TIF")))
コード例 #4
0
    def test_ndvi(self):

        p = NDVI(path=self.landsat_image, dst_path=self.temp_folder)
        self.assertTrue(exists(p.run()))
コード例 #5
0
ファイル: test_image.py プロジェクト: GEO-IASS/landsat-util
    def test_ndvi(self):

        p = NDVI(path=self.landsat_image, dst_path=self.temp_folder)
        self.assertTrue(exists(p.run()))