-
Committer:
Adam Candy
-
Date:
2012-02-13 09:30:30 UTC
-
Revision ID:
adam.candy@imperial.ac.uk-20120213093030-5l6bcng0tw1a4z0m
A new test case: netcdf_read_errors
This checks the errors reported when an attempt to read an invalid NetCDF file is made. Here 'invalid' refers to a file that is itself an invalid, non-conforming NetCDF file, or is of a format not supported by Fluidity.
Five types of NetCDF files are checked:
- One which does not provide all the data requested,
- One is missing a dimension (i.e. it provides only a 1d field),
- One is missing the main variable,
- One contains an incorrectly-labelled dimension (as 'lat', not 'x'), and
- One has the variable incorrectly labelled (as 'height', not 'z').