Open jonseddon opened 4 years ago
Even with release 2.0.6 loading two raw NEMO files with this constraint fails:
cube aux coordinates differ:
cube attributes differ:
file_name, name, TimeStamp and timeStamp attibutes inconsistent
Deleting file_name, name, TimeStamp and timeStamp attributes from cubes
There was an error in concatenation
---------------------------------------------------------------------------
ConcatenateError Traceback (most recent call last)
<ipython-input-5-4578006dbe9b> in <module>
----> 1 mslp = ch.load(glob.glob('nemo_ay652o_1m_*_grid-V.nc'), constraints=var_con)
.../cube_helper-2.0.6/cube_helper/cube_help.py in load(directory, filetype, constraints)
61 result = iris.cube.CubeList(result)
62 try:
---> 63 result = result.concatenate_cube()
64 return result
65 except iris.exceptions.ConcatenateError:
.../iris/cube.py in concatenate_cube(self, check_aux_coords)
526 msgs.append('Expected only a single cube, '
527 'found {}.'.format(n_res_cubes))
--> 528 raise iris.exceptions.ConcatenateError(msgs)
529 else:
530 msgs = []
ConcatenateError: failed to concatenate into a single cube.
An unexpected problem prevented concatenation.
Expected only a single cube, found 2.
fails with
because in load_from_filelist() line 283:
iris.load_cube()
will fail because there are multiple variables in the file. A new test should be introduced that contains multiple variables in a file. This isn't like CMIP6 data, but many users outside of CMIP6 analysis could work like this.