Skip to content

Commit

Permalink
fix: gdal info reference wrong file (#347)
Browse files Browse the repository at this point in the history
  • Loading branch information
MDavidson17 authored Feb 9, 2023
1 parent f860c94 commit 52a2ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/standardising.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def standardising(file: str, preset: str, cutline: Optional[str]) -> FileTiff:
input_file = target_vrt

# gdalinfo to get band offset and band type
info = gdal_info(file, False)
info = gdal_info(input_file, False)
command = get_gdal_command(preset, convert_from=get_gdal_band_type(input_file, info))
command.extend(get_gdal_band_offset(input_file, info))

Expand Down

0 comments on commit 52a2ee7

Please sign in to comment.