-
Notifications
You must be signed in to change notification settings - Fork 36
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
Feature request: fixes for all datasets of specific variable #428
Comments
smells to me like a very initial preprocessor step? 🍺 |
@bjlittle explains here the problem. If the netcdf file was correct, there would not be several variables and everything would work out just as expected. The problem is really in fixing erroneous metadata. Having said that, I argued in the past that it would be nice to have a more flexible way of applying fixes since indeed we are frequently using the same fixes for different datasets, also across models. A crutch is to reuse the fix classes ala:
class Tas(Fix):
pass # contains the actual fix
from cesm2 import Tas as BaseTas
Tas = BaseTas I would still prefer an approach where the fixing code is separate from its application with a matching along the lines of our normal |
I don't think this is correct. Loading the corresponding import iris
path = iris.sample_data_path('hybrid_height.nc')
cube = iris.load(path)
print(cube) gives this
|
There might be a bug in iris, but I think we really need to tackle this for specific example files of interest to determine the best course of action. In the Maybe let's look at the |
It's this dataset:
|
I encountered a more serious problem during the concatenation. After the concatenation step, the resulting cube does not have a Until now, we can only read datasets where one single file covers the whole time range. EDIT: this was already discovered back in 2017: SciTools/iris#2478 |
Ok, so it seems that the appearance of both The MPI file has some more problems, namely I haven't looked at the killing of derived coordinates in concatenation at all. That will have to wait until tomorrow. |
All right. I think I've encountered another bug (that appears when |
With the possibility to add fixes for all variables of a mip table (e.g., Feel free to re-open if necessary. |
For some variables, it would be nice to apply a common fix for all datasets of that specific variable.
For example, for the 3D cloud fraction field
cl
, most models use aatmosphere_hybrid_sigma_pressure_coordinate
(see also #59). Reading those is not a problem for most models, but sinceiris
only allows one variable per cube, the resultingcubes
after loading the file contain more than one cube. Thus, the tool outputs this warningfor every model. I don't want to write a fix for every model for that, so it would be nice to handle that in a smarter way.
I'm pretty sure we don't have that feature yet, but please correct me if I'm wrong.
The text was updated successfully, but these errors were encountered: