EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 00c1149d authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

calc step fixes formats

parent ce5da9be
No related branches found
No related tags found
Loading
......@@ -44,12 +44,12 @@ def calc_formula(source_dir: os.PathLike, inputs: List[dict], target_filename: o
"--type", data_type,
]
for name, locator in inputs:
for name in inputs:
# select first
filename = glob(join(source_dir, locator['glob']))[0]
filename = glob(join(source_dir, inputs[name]['glob']))[0]
cmd.extend([
"-%s" % name, filename,
"--%s_band=%d" % locator.get('band', 1),
"--%s_band=%d" % (name, inputs[name].get('band', 1)),
])
if nodata_value is not None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment