-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fx files in Omon or Ofx #405
Comments
The first issue is linked with @valeriupredoi's iris issue: SciTools/iris#3544 |
From @bjlittle in the iris github 3544 issue SciTools/iris#3544:
|
OK so this is quite a peculiar but alas very useful issue @ledm
|
Thanks @valeriupredoi, for the help with the iris3 installation. That did help! Just to summarise the problem with In CMIP5, the ocean cell volume, In CMIP6, the ocean cell volume,
When we're using When the The naive solution to the problem is to check for the presence of time in the I suspect that this problem also exists for 2D FX files like
|
Moving this to the core since it is |
Think I've found a solution to this problem. It's a bit of a hack though. I've added a clause to the ESMValCore/esmvalcore/_recipe.py Lines 404 to 410 in 01709c9
The only thing that this does is set the |
@ledm as we discussed over private email, I'd suggest a generalized clause that assigns the variable's
|
can actually make a list in |
I've had to make a minor change, but V's solution seems to work. |
get the PR out, brohem 🍺 |
The solutions solve the problem of being unable to find the fx files (yay!), but raise another issue. In the recipe I'm working on, the preporcessor is:
Basically, it extracts the top 700m of the surface ocean temperature, takes the annual average, then take the volume-weighted average. The
I'm happy to push the current fix as a PR, but we should be clear that it only solves half the problem. Thoughts @valeriupredoi? |
that is a problem of handling the fx variable as an auxiliary fx variable and not as a true diagnostic variable - if you list it as a diagnostic variable then all the needed preproc steps will be applied to it. But then again that is a Catch 22 since that way you will not be able to couple it to the other variable (tas?). So my hacky suggestion would be to treat these sort of cases in the diagnostic where you will have both tas and volcello preprocc-ed data. Can that be done? |
So the only way to use fx_files in something like We can only look at global means, no local or regional means? That seems very restrictive. |
@ledm I have changed the original message of the issue to reflect the issues at hand. I think the best incremental approach is to first open a PR that solves the data finding of the Then we need to think about how to have the coupled case |
Thanks V, I'll get a PR sent off for this fix. As an aside: |
This is a pretty nasty flaw for the task I'm trying to do at the minute. I can think of a workaround, but it would be a few days of extra work for me. If I were a normal user (instead of an ESMValTool core developper with a couple years ESMValTool experience), this would be an insurmountable obstacle. If there's a straightforward way to apply the preprocessing chain to the fx files, I'd rather do that. |
I'm finding some strange behaviour with the ocean grid cell volume
volcello
files. There are two issues.Firstly, I don't think that iris is able to load any of these files, (using
iris.load_cube(fn)
). I have no idea why though. They all open fine with ncdump ncview, & netCDF4.This is sorted now with
iris=2.3.0
Secondly, most the models have put the
volcello
files in theOfx
MIP, but some have put them in theOmon
MIP. At first, I assumed that theOmon
ones were incorrect. However, some of the models may produce grid data which changes with time resolution, so that makes sense for these to exist. Is there any way to change my recipe such that the finder looks in bothOfx
and the correct time resolution mip (Omon
in my case)?@valeriupredoi says:
There are two sides of this problem:
(tas, volcello)
when avolume_statistic
usingvolcello
needs to be applied ontas
The text was updated successfully, but these errors were encountered: