Open vpipkt opened 5 years ago
I encountered this bug in 0.9.1 - I found that in my case it was (possibly) associated with masked tiles. The rf_render_png
function ran fine on my data, but once I'd applied a cloud mask using the rf_mask_by_values
function rf_render_png
would no longer work, throwing the error seen above.
If I had to guess, I think it might be failing on the tile normalisation step, because there is no range of values in the tile (e.g. max and min are both 0) and/or no data values are being represented in some way that is incompatible. So in my case it could be that a tile is completely masked by cloud and it can't normalise a single constant value. When I don't mask, the cloudy tile still has some variation in cell values so it works.
Context: jupyter notebook and conda environment with pyspark 2.3.3 and pyrasterframes 0.8.1 (pip installed) and GDAL 2.4.2
Read the csv catalog attached render_png_catalog.csv.zip
Read
raster
datasource withcatalog_col_names = ['B7', 'B5', 'B1']
generates error below: