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
I think this is rather that the tiles that are erroring are all NaN, if you check for that you can return before
if np.all(np.isnan(data_array)):
# This tile is entirely NaN, so render as all zeroes
print("All NaN")
return None
# Compute min and max values, excluding NaN
valid_min = math.floor(np.nanmin(data_array))
valid_max = math.ceil(np.nanmax(data_array))
# Masking the NaN values and replcing with values outside min max
masked_data = np.nan_to_num(data_array, nan=valid_min - 1)
# Using the minmax for color mapping
arr = utils.arr_to_plasma(masked_data, min_max=(valid_min, valid_max))
return arr
Tile bounds should be extracted from the first record (code):
minx, miny, maxx, maxy = bbox.bounds.iloc[0]
Tile errors (error code 422) are occurring:
The text was updated successfully, but these errors were encountered: