Open Peter9192 opened 4 years ago
ugh cheers @Peter9192 - definitely a bug! Let me create a fix :beer:
Reopening this one as I just tried to use a similar recipe with standardize=True
, which results in
variables:
double unknown ;
unknown:_FillValue = 1.e+20 ;
unknown:units = "1" ;
unknown:cell_methods = "time: mean" ;
unknown:coordinates = "lat lon time" ;
Not sure if this was introduced by a change in Iris, or that it never really worked but we didn't catch it. We also apparently don't cover this case in the tests yet.
So the core issue being that the variable name changed to 'unknown'
Describe the bug When the
anomalies
preprocessor function is applied withperiod=full
, it removes important metadata such as the variable name, all attributes, etc. This doesn't happen for other periods likemonth
orday
. Consequently, subsequent preprocessors or diagnostics fail.I think it's happening here:
and this seems to be the intended behaviour in Iris, as it is documented here.
Perhaps EMSValTool should only subtract the data instead of the full cube?
Example
print(cube)
:gives