You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is in case anyone else runs into the same issue, really.
I was having issues with artefacts at the edges of source images, caused by nodata values. Adding a call to numpy's nan_to_num in data_to_rgb (encoders.py) fixes it:
data /= interval
data = np.nan_to_num(data, True, 100000.0)
data = np.around(data / 2**round_digits) * 2**round_digits
(100000.0 is from the -b and -i values of my invocation and shouldn't be hardcoded, obviously.)
The text was updated successfully, but these errors were encountered:
The original issue suggesting this is here: mapbox#38
It used to create artefacts around the extent of source tif files. This
way they do not appear anymore.
This is in case anyone else runs into the same issue, really.
I was having issues with artefacts at the edges of source images, caused by nodata values. Adding a call to numpy's
nan_to_num
in data_to_rgb (encoders.py) fixes it:(100000.0 is from the -b and -i values of my invocation and shouldn't be hardcoded, obviously.)
The text was updated successfully, but these errors were encountered: