Changes between Version 4 and Version 5 of Documentation/UserGuide/DifferencesNetcdf
- Timestamp:
- 2014-12-11T19:35:12+01:00 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide/DifferencesNetcdf
v4 v5 1 = How to check whether two netcdffiles are identical =1 = How to check whether two (netcdf) files are identical = 2 2 3 3 === cdo diffv === … … 8 8 cdo diffv path_file_1 path_file_2 > output_file_name.txt 9 9 }}} 10 ADVANTAGE: the output file tells you which fields are different. Be aware, though that this method works best for smaller netCDF files. If your history file is more than a few megabytes, the output text file may be many hundreds of megabytes. In that case, the md5sum command may be a better option. 10 ADVANTAGE: the output file tells you which fields are different. Be aware, though that this method works best for smaller netCDF files. If your history file is more than a few megabytes, the output text file may be many hundreds of megabytes. In that case, the md5sum command may be a better option. 11 DISADVANTAGE: only works for netcdf files 11 12 12 13 === md5sum === … … 18 19 as a result you will get a code. Run the same command on the second file and only when the code is identical for both files, the files are exactly the same. 19 20 21 ADVANTAGE: works for all files. 20 22 DISADVANTAGE: you only know whether the files are identical or not. If not, you have no idea which fields are different.