def test_rda_materialize(self): catid = '881e61e5-5c56-44bf-a0d0-c4f5260a8aff-inv' img = CatalogImage(catid) aoi = img.randwindow((1000, 1000)) assert aoi.shape == (4, 1000, 1000) job_id = img.materialize(bounds=aoi.bounds) status = img.materialize_status(job_id) assert status['jobStatus'] == 'processing'
def test_rda_materialize(self): # TODO: Fix this test catid = '8c3c4fc6-abcb-4f5f-bce6-d496c1a91676' img = CatalogImage(catid) aoi = img.randwindow((1000, 1000)) assert aoi.shape == (4, 1000, 1000) job_id = img.materialize(bounds=aoi.bounds) status = img.materialize_status(job_id) assert status['jobStatus'] == 'processing'
def test_image_window_cover_false(self): """ Window cover should not padd the image and return only tiles of 100, 100 (9 windows) """ wv2 = CatalogImage('1030010076B8F500') aoi = wv2.randwindow((325,300)) coverage = [dsk for dsk in aoi.window_cover((100,100), pad=False)] self.assertEquals(len(coverage), 9)
def test_image_window_cover(self): """ Window cover should padd the image by 25 pixels and return 9 windows """ wv2 = CatalogImage('1030010076B8F500') aoi = wv2.randwindow((275,300)) coverage = [dsk for dsk in aoi.window_cover((100,100), pad=True)] self.assertEquals(len(coverage), 9)
def test_image_window_cover_false(self): """ Window cover should not padd the image and return only tiles of 100, 100 (9 windows) """ wv2 = CatalogImage('1030010076B8F500') aoi = wv2.randwindow((325, 300)) coverage = [dsk for dsk in aoi.window_cover((100, 100), pad=False)] self.assertEquals(len(coverage), 9)
def test_image_window_cover(self): """ Window cover should padd the image by 25 pixels and return 9 windows """ wv2 = CatalogImage('1030010076B8F500') aoi = wv2.randwindow((275, 300)) coverage = [dsk for dsk in aoi.window_cover((100, 100), pad=True)] self.assertEquals(len(coverage), 9)