Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewAnnex committed Apr 26, 2022
1 parent 0c3f8fb commit b57d760
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions asap_stereo/asap.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,10 @@ def get_image_band_stats(img)-> dict:
return gdal_info['bands']

@staticmethod
def drg_to_cog(self, img, scale_bound: float = 0.001, gdal_options=None):
def drg_to_cog(img, scale_bound: float = 0.001, gdal_options=None):
if gdal_options is None:
gdal_options = ["--config", "GDAL_CACHEMAX", "2000", "-co", "PREDICTOR=2", "-co", "COMPRESS=LERC_ZSTD", "-co", "NUM_THREADS=ALL_CPUS", ]
band_stats = self.get_image_band_stats(img)[0] # assumes single band image for now
gdal_options = ["--config", "GDAL_CACHEMAX", "2000", "-co", "PREDICTOR=2", "-co", "COMPRESS=ZSTD", "-co", "NUM_THREADS=ALL_CPUS", ]
band_stats = CommonSteps.get_image_band_stats(img)[0] # assumes single band image for now
# make output name
out_name = Path(img).stem + '_norm.tif'
# get bands scaling iterable, multiply by 1.001 for a little lower range
Expand Down

0 comments on commit b57d760

Please sign in to comment.