Changes between Version 14 and Version 15 of Documentation/UserGuide/DifferencesNetcdf
- Timestamp:
- 2020-05-11T15:36:50+02:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/UserGuide/DifferencesNetcdf
v14 v15 13 13 }}} 14 14 15 The comparison only works if the files contain the same variables and in the same order. Otherwise the cdo command will return error=100. If one of the files contains more variable , the attached script [attachment:differr100.sh differr100.sh] by Josefine Ghattas can be used. This script will check if there are difference in the variable names and ask the user to remove variables. If first checks variables with type float and if no differences found, it checks variables with type double. The script can thereforbe used as well on diagnostic history files as restart files from ORCHIDEE. Use the script in the following way:15 The comparison only works if the files contain the same variables and in the same order. Otherwise the cdo command will return error=100. If one of the files contains more variables, the attached script [attachment:differr100.sh differr100.sh] by Josefine Ghattas can be used. This script will check if there are differences in the variable names and ask the user to remove variables, so the command "cdo diffv" can be applied. It first checks variables with type float and if no differences are found, it checks variables with type double. The script can therefore be used as well on diagnostic history files as restart files from ORCHIDEE. Use the script in the following way: 16 16 {{{ 17 17 ./diff100err.sh path_file_1 path_file_2 … … 41 41 === Matlab === 42 42 43 The matlab function nccmp areable to compare all variables contained within two netcdf files. The original version can be found [https://fr.mathworks.com/matlabcentral/fileexchange/47857-comparing-two-netcdf-files here].44 I havemade some small modifications so that the information produced by the script are put into a file instead of being printed to the screen. The updated version can be found [https://forge.ipsl.jussieu.fr/orchidee/attachment/wiki/Documentation/UserGuide/DifferencesNetcdf/nccmp_obelix.m here]43 The matlab function nccmp is able to compare all variables contained within two netcdf files. The original version can be found [https://fr.mathworks.com/matlabcentral/fileexchange/47857-comparing-two-netcdf-files here]. 44 Pascal Maugis has made some small modifications so that the information produced by the script are put into a file instead of being printed to the screen. The updated version can be found [https://forge.ipsl.jussieu.fr/orchidee/attachment/wiki/Documentation/UserGuide/DifferencesNetcdf/nccmp_obelix.m here] 45 45 46 46 Sadly, matlab is not on obelix, but on IRENE. To open matlab on IRENE type ''Matlab'' or if you wish to run from the terminal type ''matlab -nodesktop''. … … 61 61 For global simulations, the True option can produce a large file and the information might be hard to process, if there are many differences between the compared restart files. In addition, the True option makes the script much slower. However, for small simulation the True option is very useful. 62 62 63 I recommend that youuse the re-ordered files from the difffer100.sh script as inputs to nccmp.63 It is recommended to use the re-ordered files from the difffer100.sh script as inputs to nccmp.