-
Notifications
You must be signed in to change notification settings - Fork 14
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
Can't reproduce QG example #3
Comments
Hi, thank you for your interests. This is due to the recent update of |
Thank you for your swift response. Upon downgrading to xgcm v 0.6.1 I unfortunately get the following warnings and error:
|
Sorry for this inconvience. The dependence of Could you please try 0.5.x of 'xgcm'? I write the codes using that version and I guess it should be OK. |
Ah...makes sense. Just downgraded to xgcm 0.5.0 and upon execution of the code this then comes up: File "", line 1, in Is it because in the Dynamics class, the method init(self,dset,grid=None) doesn't take the grid type argument? class Dynamics(Application): |
Oh, I notice that one may need
|
I've just updated/cloned the GeoApps package into the tests folder, and again it throws the initial error I got before downgrading to an older xgcm version. C:\Users\user-pc\miniconda3\lib\site-packages\scipy_init_.py:138: UserWarning: A NumPy version >=1.16.5 and <1.23.0 is required for this version of SciPy (detected version 1.23.1) Could this be related to the scipy and numpy warnings issued? |
I'll give a try to run this example using the newest versions of packages, fix all the bugs, and let you know the results ASAP. |
Awesome!, thanks for your help and patience. |
I've updated the test codes of QG omega, with 0.7.0v of For inverting QG omega, one needs a 3D forcing function and a 3D stratification. But the calculations of the forcing and stratification are not the part of Note that there are NaN in the calculation, which is used to maskout the topography (kwarg undef=NaN). In this case, one need to change Once the forcings are ready, inverting is much easier. Please tell me if you find other problems. |
Close this now. Feel free to re-open it in any case. |
Hello, I'm very new to python and trying to implement the QG omega test case using the sample data: atmos3D.nc provided, but I keep running into the following error upon executing the testOmegaEq.py script:
Traceback (most recent call last):
File "", line 1, in
File "", line 18, in
File "C:\Users\user-pc\miniconda3\Lib\site-packages\xinvert\tests\GeoApps\GridUtils.py", line 70, in add_latlon_metrics
dlonG = grid.diff(ds[lon ], 'X', boundary_discontinuity=360)
File "C:\Users\user-pc\miniconda3\lib\site-packages\xgcm\grid.py", line 2093, in diff
return self._1d_grid_ufunc_dispatch("diff", da, axis, **kwargs)
File "C:\Users\user-pc\miniconda3\lib\site-packages\xgcm\grid.py", line 1836, in _1d_grid_ufunc_dispatch
array = grid_ufunc(
File "C:\Users\user-pc\miniconda3\lib\site-packages\xgcm\grid_ufunc.py", line 460, in call
return apply_as_grid_ufunc(
File "C:\Users\user-pc\miniconda3\lib\site-packages\xgcm\grid_ufunc.py", line 770, in apply_as_grid_ufunc
results = _apply(
File "C:\Users\user-pc\miniconda3\lib\site-packages\xgcm\grid_ufunc.py", line 837, in _apply
results = xr.apply_ufunc(
TypeError: apply_ufunc() got an unexpected keyword argument 'boundary_discontinuity'
Can you please assist in figuring out what is causing this?
The text was updated successfully, but these errors were encountered: