CIME.hist_utils.cprnc
- CIME.hist_utils.cprnc(model, file1, file2, case, rundir, multiinst_driver_compare=False, outfile_suffix='', ignore_fieldlist_diffs=False, cprnc_exe=None)[source]
Run the cprnc tool to compare two individual netcdf files.
- Args:
file1 (str): The full or relative path of the first file. file2 (str): The full or relative path of the second file. case (CIME.case.Case): the case containing the files. rundir (str): The rundir for the case outfile_suffix (str): If non-blank, then the output file name ends with this suffix (with a ‘.’ added before the given suffix). Use None to avoid permissions issues in the case dir. ignore_fieldlist_diffs (bool): If True, then: If the two cases differ only in their field lists (i.e., all shared fields are bit-for-bit, but one case has some diagnostic fields that are missing from the other case), treat the two cases as identical.
- Returns:
Tuple bool, str, str: (files_match, output_filename, comment) files_match is True if the files matched, False otherwise. output_filename is the name of the cprnc output file or None if outfile_suffix is None. comment is either an empty string or one of the module-level constants beginning with CPRNC (e.g., CPRNC_FIELDLISTS_DIFFER)