-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EOBS: r95p und rr95p #47
Comments
Hi @KatharinaBuelow, the only information I get from this error message is that the variable You can find a list of available Hopfully this solves your problem. If not, you can send me the entire error message for a more detailed analysis. Please submit a new PR if you want to make changes to the code. |
Hi @ludwiglierhammer I could in most cases calculate RR95p for euro-cordex using xcalc-0-11-0, but the results do not look good. (You used: x_calc_0.6.1, where the results look good), it is just a problem that starts with new version xcalc_0.7.1 and higher. There is no xclim funktion which calculates the percentile value, as far as could see. You wrote this funktion: index_calculator/index_calculator/_indices.py Line 943 in 6adf2b4
It is not new. Perhaps I should try eobs later again. |
I think you should ask the Could you send me the entire log file? I may have a look at it. |
@ludwiglierhammer ich glaube es hat keine priorität, da wir glaube ich RR95p nicht verwenden, aber es fällt einem ja immer wieder auf die Füße, wenn man etwas nicht löst. |
@KatharinaBuelow: def _rename_variable_names(self, ds):
if self.project not in cfjson.keys():
return ds
var_names = cfjson[self.project]["variables"]
units = cfjson[self.project]["units"]
for dvar in ds.data_vars:
if dvar in var_names.keys():
ds = ds.rename({dvar: var_names[dvar]})
idx = self.var_name.index(dvar) # new line
dvar = var_names[dvar]
self.var_name[idx] = dvar # new line
if dvar in units.keys():
ds[dvar].attrs["units"] = units[dvar]
return ds und diesen Codeabschnitt: self.unlimited_dims = None # new line
for dim in idx_ds[self.CIname].dims:
if self.unlimited_dims: # new ine
break # new line
for var_name in self.var_name:
if dim not in self.preproc[var_name].dims:
self.unlimited_dims = dim
break Alles weitere gern in einem neuen PR. |
I calculated all precipitation indices using '-search_query variable_id:rr ' and also R95p for eobs and all went fine, but I can not calculate RR95p.
I used
index_calculation -p EOBS create_scripts -idx RR95p -intake /work/ch0636/eddy/pool/intake-esm_catalogues/EOBS.json -scrpt_dir /scratch/g/g300047/index_calculation -out_dir /work/ch0636/g300047/index_calculation -ofreq sem -submit
and also
index_calculation -p EOBS create_scripts -idx RR95p -intake /work/ch0636/eddy/pool/intake-esm_catalogues/EOBS.json -scrpt_dir /scratch/g/g300047/index_calculation -out_dir /work/ch0636/g300047/index_calculation -ofreq sem -search_query variable_id:rr -submit
Do you have an idea where to look for the mistake?
The log file sends me to xarray ?
...
.... python3.10/site-packages/xarray/core/dataset.py", line 214, in _get_virtual_variable
raise KeyError(key)
KeyError: 'rr'
But it worked for everything else very well ?
The text was updated successfully, but these errors were encountered: