[parallel-netcdf] #42: MPI-agnostic "ncmpidiff" tool?
Jim Edwards
jedwards at ucar.edu
Wed Jun 12 12:16:20 CDT 2019
Hi Carl,
There is a tool distributed with cesm called cprnc that does something
similar and which you may find useful.
https://github.com/ESMCI/cime/tree/master/tools/cprnc
On Wed, Jun 12, 2019 at 11:09 AM Carl Ponder via parallel-netcdf <
parallel-netcdf at lists.mcs.anl.gov> wrote:
> *On 6/11/19 1:05 PM, Wei-keng Liao wrote:*
>
> I have implemented a serial version of ncmpidiff, named "cdfdiff”. It is
> available in PnetCDF repo and will be added to the next release.
>
> https://github.com/Parallel-NetCDF/PnetCDF/tree/master/src/utils/ncmpidiff
>
> Command “make” or “make cdfdiff” will create it. Note it only compares the
> classic NetCDF files.
>
> Wei-Keng -- do you have some explanation of the tool output?
> I have this, for example:
>
> DIFF: global attribute "history" length (31) != (30)
> DIFF: global attribute "config_run_duration" of type "NC_CHAR" (3)
> DIFF: global attribute "file_id" of type "NC_CHAR" (3)
> DIFF: variable "ru" of type "NC_FLOAT" (158)
> DIFF: variable "ru_save" of type "NC_FLOAT" (-185)
> DIFF: variable "rw" of type "NC_FLOAT" (-91)
> DIFF: variable "rw_save" of type "NC_FLOAT" (101)
> DIFF: variable "rtheta_p" of type "NC_FLOAT" (77)
> DIFF: variable "rtheta_p_save" of type "NC_FLOAT" (-47)
> DIFF: variable "rho_p" of type "NC_FLOAT" (42)
> DIFF: variable "rho_p_save" of type "NC_FLOAT" (-35)
> DIFF: variable "rho_zz_old_split" of type "NC_FLOAT" (83)
> DIFF: variable "ruAvg" of type "NC_FLOAT" (-151)
> DIFF: variable "ruAvg_split" of type "NC_FLOAT" (15)
> DIFF: variable "wwAvg" of type "NC_FLOAT" (-93)
> DIFF: variable "wwAvg_split" of type "NC_FLOAT" (-70)
> Number of differences in header 3
> Number of differences in variables 13
>
> Most of these are arrays, is this reporting the largest absolute
> difference across all the elements?
>
> -- Carl
>
>
> ------------------------------
> This email message is for the sole use of the intended recipient(s) and
> may contain confidential information. Any unauthorized review, use,
> disclosure or distribution is prohibited. If you are not the intended
> recipient, please contact the sender by reply email and destroy all copies
> of the original message.
> ------------------------------
>
--
Jim Edwards
CESM Software Engineer
National Center for Atmospheric Research
Boulder, CO
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20190612/6b4c9030/attachment.html>
More information about the parallel-netcdf
mailing list