|
31 | 31 | import rasterio as rio
|
32 | 32 | import yaml
|
33 | 33 | from click.core import ParameterSource
|
34 |
| -from rasterio.warp import SUPPORTED_RESAMPLING |
35 | 34 | from rasterio.errors import NotGeoreferencedWarning
|
| 35 | +from rasterio.warp import SUPPORTED_RESAMPLING |
36 | 36 |
|
37 | 37 | from homonim import utils, version, RasterFuse, RasterCompare, ParamStats, ProcCrs, Model
|
38 | 38 | from homonim.errors import ImageFormatError
|
39 |
| -from homonim.raster_array import RasterArray |
40 | 39 | from homonim.kernel_model import KernelModel
|
| 40 | +from homonim.raster_array import RasterArray |
41 | 41 |
|
42 | 42 | logger = logging.getLogger(__name__)
|
43 | 43 |
|
@@ -262,7 +262,7 @@ def _param_file_cb(ctx: click.Context, param: click.Argument, value):
|
262 | 262 | help=f'Reference band index(es) to match with source band(s) (1 based).'
|
263 | 263 | )
|
264 | 264 | force_match_option = click.option(
|
265 |
| - '-f', '--force-match', is_flag=True, type=click.BOOL, default=False, show_default=True, |
| 265 | + '-f', '--force-match', is_flag=True,default=False, show_default=True, |
266 | 266 | help=f'Bypass auto wavelength matching, and any band-matching errors. Use with caution.'
|
267 | 267 | )
|
268 | 268 | """ cloup context settings to print help in 'linear' layout with heading/option emphasis. """
|
@@ -325,7 +325,7 @@ def cli(verbose: int, quiet: int):
|
325 | 325 | show_default='source image directory.', help='Directory in which to place corrected image(s).'
|
326 | 326 | ),
|
327 | 327 | click.option(
|
328 |
| - '-o', '--overwrite', is_flag=True, type=click.BOOL, default=False, show_default=True, |
| 328 | + '-o', '--overwrite', is_flag=True, default=False, show_default=True, |
329 | 329 | help='Overwrite existing output file(s).'
|
330 | 330 | ),
|
331 | 331 | # TODO: does this work in front of an argument? or should it be handles like oty rpc's --gcp-refine?
|
|
0 commit comments