-
Notifications
You must be signed in to change notification settings - Fork 24
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
ValueError while trying to filter with fixed factor, using MOM5 #162
Comments
Hi @marimpacheco, thanks for reaching out! I think I came across the same problem a while ago, which is why I opened PR #161. Let's merge the PR and see if this solves your problem. |
Hi Nora, I reinstalled gcm-filters, but unfortunately the problem remains |
@marimpacheco did you install directly from the website? The changes have not been pushed to conda or pip yet, so if you re-installed from there you wouldn't have gotten the updates |
Ah right, from the commit it works, thanks! |
Hi, I have a question on how to adjust the dxw/dyw/dxs/dys values using MOM5 with the In issue #24 @NoraLoose mentioned we should set: |
Hi @marimpacheco! If you have MOM5 data, I recommend using the grid types Let me know if that is helpful, or if you still want to use the |
I need to use the IRREGULAR_WITH_LAND in order to use a fixed factor filter. |
True, in that case the I recommend to use the python package xgcm to compute the necessary grid information.
where Next, you can use If you run into more issues, feel free to share a minimal example notebook. Hope this helps! |
Another (easier) option is to use a simple fixed factor filter with |
Ah ok, thank you very much! I'll try with xgcm :) |
@marimpacheco did xgcm resolve your problem? Can we close this issue? |
Yes, it did, thanks :) |
Hi,
I want to use gcm-filters to filter a lat/lon(3S-46S/132W-68W) section of the GFDL CM2.6 model (MOM5, 0.1°) using a filter with fixed factor (spatially-varying and anisotropic filter), and with a 15° longitude, 5° latitude cut-off wavelength. I want to filter tracers (temp, o2, ph).
Since MOM5 is NE-oriented, I selected the dxu, dxt, dyu and dyt accordingly so dxu would be located southwest of dxt (not sure if that is necessary? or a wrong way to proceed?).
Then I followed all the steps in the example and choosing as filter scale:
However, when I try to run the filtering, I get the error: ValueError: At least one place in the domain must have either kappa_w = 1.0 or kappa_s = 1.Otherwise the filter's scale will not be equal to filter_scale anywhere in the domain.
But:
If I add the
(1/900) *
to the kappa_s and remove it from kappa_w, it works.How should I solve this? Thanks!
The text was updated successfully, but these errors were encountered: