When a file contains no variables and an existing attribute is deleted,
the file size can be larger than the header size. This PR truncates the
file size to the header size.
In addition, ncvalidator should treats such an unmatched file size as a
warning, rather than an error, because the file is still a valid netCDF file.
When a file contains no variables and an existing attribute is deleted, the file size can be larger than the header size. This PR truncates the file size to the header size.
In addition, ncvalidator should treats such an unmatched file size as a warning, rather than an error, because the file is still a valid netCDF file.