Changes between Version 16 and Version 17 of Documentation/UserGuide/restartability


Ignore:
Timestamp:
2020-02-28T17:31:31+01:00 (4 years ago)
Author:
pmaugis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/restartability

    v16 v17  
    2323 
    2424=== How to compare netcdf files === 
    25 The comparison is the easiest if the same variables are contained in the two netcdf files and the variables are in the same order. The [https://forge.ipsl.jussieu.fr/orchidee/attachment/wiki/Documentation/UserGuide/restartability/differr100.sh differ100.sh] script by Josefine Ghattas, nicely does this. Moreover, it uses cdo diffv to compare the files. However 5dim variables are ignored by the cdo diffv command, thus not all variables in the restart files can be compared using differ100.sh 
     25See the [https://forge.ipsl.jussieu.fr/orchidee/wiki/Documentation/UserGuide/DifferencesNetcdf corresponding section]. 
    2626 
    27 === Have to check for differences between two netcdf files that have variables with dimensions higher than 4 === 
    28 The matlab function nccmp are able to compare all variables contained within two netcdf files. The original version can be found here: https://fr.mathworks.com/matlabcentral/fileexchange/47857-comparing-two-netcdf-files. 
    29 I have made some small modifications such 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/restartability/nccmp_obelix.m here] 
    3027 
    31 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''.  
    32  
    33 Next run the function by typing: 
    34  
    35 {{{ 
    36 NCCMP(ncfile1,ncfile2,tolerance,forceCompare) 
    37 }}} 
    38  
    39 ''Tolerance'' is if you allow some variation in the variables between the two files. We want identical files thus put [] here. 
    40  
    41 ''forceCompare'' can be set to true or false.  
    42  
    43 - True - write all occurrences of differences in a variable (specifically gives all the indices) to the file: all_diff.txt.  
    44  
    45 - False - only write, if there is differences in a variable, the first occurrences of such differences to the file: first_diff.txt.  
    46  
    47 For global simulation, 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.  
    48  
    49 I recommend that you use the re-ordered files from the difffer100.sh script as inputs to nccmp.  
    50  
    51 '''Debugging suggestions:''' 
     28=== Debugging suggestions:=== 
    5229- If possible limit the spatial scale (to maximize speed).  
    5330- Track down the onset of the deviation between the restart files.