Proper way to handle failing preprocess
output.
#332
Labels
enhancement
Issues that are found to be a reasonable candidate feature additions
preprocess
output.
#332
I am encountering an issue with one dataset when loading many CMIP6 datasets using intake-esm (see #331).
I believe this is actually an issue with the raw data, but either way it got me curious if there is a way to handle the following scenario properly:
Lets say I have 2 dataset (
ds_a
,ds_b
) in 2 different zarr stores and an appropriately set up intake-esm catalog.Now I have some preprocessing function
func
.func
modifies something on each datasets, works fine onds_a
, but fails onds_b
.Currently that will lead to a complete failure when reading in the full catalog with
.to_datasets_dict()
.Is there a way to simply exclude the failing dataset but continue to process only the ones that work? This would be very helpful to me.
EDIT: In further investigating this, it seems that in #331 the preprocessing is not even needed, but I guess this question can be phrased more generally: Is there a way to still output some datasets if errors are coming up for some of them?
The text was updated successfully, but these errors were encountered: