File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44AI workflow stages of detecting Wildlife from Space.
55"""
66
7- __version__ = "1.0.0 "
7+ __version__ = "1.0.1 "
Original file line number Diff line number Diff line change @@ -286,13 +286,14 @@ def orthorectify(self,
286286 gdal .UseExceptions ()
287287 with gdal .Open (self .src ) as dataset :
288288 numbands = dataset .RasterCount
289- bandlist = [i for i in range (numbands )]
290- bandlist = list (set ([1 if i == 0 else i for i in bandlist ]))
289+ bandlist = [i + 1 for i in range (numbands )]
290+ # bandlist = list(set([1 if i == 0 else i for i in bandlist]))
291291 src_bands = dst_bands = bandlist
292292 elif src_bands is not None and dst_bands is None :
293293 dst_bands = src_bands
294294 else :
295295 pass
296+ logger .info ("dataset.RasterCount: %s" , str (numbands ))
296297 logger .info ("source bands: %s" , str (src_bands ))
297298 logger .info ("destination bands: %s" , str (dst_bands ))
298299
You can’t perform that action at this time.
0 commit comments