-
Hi all,
With some other datasets oc_chl/chl is not available so it does not work (normal), for example (chl not available for EC-Earth3):
But with some other datasets oc_chl/chl is avalaible but I have a python error (ValueError: zero-size array to reduction operation minimum which has no identity), for example with:
Is this ValueError is a bug or is it just linked to the model I've chosen ? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @Coquart, thanks for getting in touch.
It could in theory be both: that there is something wrong or different with that model data and that ideally such a problem should be detected by the diagnostic code to provide a more informative error message. To investigate the former, I'd suggest inspecting the pre-processed data files under |
Beta Was this translation helpful? Give feedback.
-
Looking at the code, the model data array is
|
Beta Was this translation helpful? Give feedback.
-
Hi @alistairsellar, thanks for your fast answer 😊 |
Beta Was this translation helpful? Give feedback.
Hi @alistairsellar, thanks for your fast answer 😊
I had a look at the preproc NetCDF files when I have the ValueError message and the variable chl depends only from lat and lon, which is ok.
The problem is that chl is zero for the dataset {dataset: CNRM-ESM2-1, project: CMIP6, ensemble: r1i1p1f2, grid: gn} (not for the other datasets) which explains the message.
I will re-use your methodology for the next problem I shall meet, thanks for sharing. Best regards, Laure