tilearray.compute_with_policy#
- tilearray.compute_with_policy(obj, fetch_policy=None, *, max_concurrent=None, num_workers=None, **compute_kwargs)[source]#
Compute a Dask-backed xarray or dask object with fetch-aligned thread workers.
Dask’s default
.compute()usesnum_workers=cpu_count(), which can cap in-flight tile fetches belowmax_concurrentwhen AIMD allows more parallel HTTP. This helper runs the threaded scheduler withnum_workers=compute_thread_pool_size(policy).Policy resolution order: explicit
fetch_policy, thenmax_concurrent(builds a minimal policy), thentilearray_fetch_policyonobj.attrs(set bycreate_array()), elseFetchPolicydefaults.