Closed courtney-layman closed 3 years ago
For context, first I want to confirm this is cases with a floating point cell_type?
And by sparse histogram, this means that many bins have counts that are very low?
Can you confirm the issue is happening on rf_tile_histogram
? the implementation under the hood should already be returning float valued breaks.
To answer your question more directly, at this point it would be a pretty big implementation effort to make such an option available, especially in the case of the aggregate histogram.
The Scala API provides the option to set the number of buckets. Would this help if available in Python?
I think we can close this since @vpipkt found a bug in my code that was converting the floats to integer. It might be useful to have the option for setting the number of buckets though.
In the
rf_agg_approx_histogram
andrf_tile_histogram
would it be possible to add an option to group values to the nearest decimal place rather than integer? After performing z-score normalization on some Landsat images, I am seeing some really sparse histograms. It would be useful to be able to group by float values with 1 decimal place.