We found a notebook to be able to get processing unit estimates for a request. See the following link:
We want to be able to get the processing units in a similar manner, but we are using the Sentinel Hub Statistical Download Client. I looked at the documentation for this, and it did not appear that we could use the same method to get the estimated Processing Units (sentinelhub.download.sentinelhub_statistical_client — Sentinel Hub 3.8.0 documentation).
Do you have a recommendation for getting the processing units while using the Statistical Download Client?
When using SentinelHubStatisticalDownloadClient, you could set decode_data to False while calling the download method to get the encoded result with headers.
Then you could call headers to retrieve the estimated processing units as shown in the example you provided. To decode the data after having the processing units retrieved, you could simply call the decode method, e.g., ndvi_stats[0].decode().
retry-after only appears when you reach the rate limit, i.e., when the response having a status of 429. To find out the rate limit of your account, please refer to the Sentinel Hub pricing page.