Operator Sharpen LST error size raster
Closed this issue ยท 9 comments
Hi @panakouris, after this issue "Warp to template operator: error in output image..."
the subsequent operators eg. "Sharpen LST with data minning sharpener" etc... have this error:
ValueError: operands could not be broadcast together with shapes (1488,1140) (1140,1488)
Process exited with value 1
Finished tool execution in 17 seconds
thanks
Hi @alveniz this issue should also be fixed now. It was related #1 because in both cases there was a bug in setting the dimensions of files written and read by SNAP.
The package bundle is not prepared yet but you can test the fix by cloning this repository into .snap\auxdata\sen-et-conda-Win64. Or you could edit .snap\auxdata\sen-et-conda-Win64\sen-et-snap-scripts\snappy_utils.py as shown in the bug fix commit.
Please let us know if this resolves the issue.
its works.
Hello,
I'am starting to use Sen-ET (thank you for its developement by the way) in the frame of my research. I've been trying to run all the steps but I find myself stuck with this same issue although I'am using the scripts coming from the updated bundle.
My team and I can't really find where it could come from as all the results from the previous steps seemed coherent.
Have u had any reports of this issue poping up again?
Hi, have you tried this:
Or you could edit .snap\auxdata\sen-et-conda-Win64\sen-et-snap-scripts\snappy_utils.py as shown in the bug fix commit.
Or does the code already look like after the fix?
Yes the code is already fixed like mentioned in the bug fix
Then I'm not sure... Are you using SNAP 7 or SNAP 8? The plugin was developed and tested only with SNAP 7. Maybe axis order has changed?
I was using SNAP 8. I switched to SNAP 7 but the error still pops up.
The only other thing that I can think of is the switch of axis ordering in GDAL (https://gdal.org/tutorials/osr_api_tut.html#crs-and-axis-order) but I am not sure if this is relevant here.
The simplest solution would be to reverse the bug fix commit. The Sen-ET project is finished and we don't have the resources to provide support for the plugin but you could try to get community support on the SNAP forum: https://forum.step.esa.int/c/snap/sen4et/37. If you find the root cause or a permanent solution then also please report it on the forum for other users.