[parallel-netcdf] #42: MPI-agnostic "ncmpidiff" tool?
Wei-keng Liao
wkliao at eecs.northwestern.edu
Wed Jun 12 17:40:49 CDT 2019
> Wei-Keng -- do all these tools work ok with the PNetCDF output-files?
Yes. They work for classic NetCDF files (i.e. CDF-1, 2, and 5) but
not the HDF5-based NetCDF4 files.
Wei-keng
> On Jun 12, 2019, at 5:38 PM, Carl Ponder <cponder at nvidia.com> wrote:
>
> On 6/12/19 5:08 PM, Wei-keng Liao wrote:
>> cdfdiff and ncmpidiff were designed to be more like unix command “diff”.
>> It reports whether the 2 NetCDF files are different and the “locations”
>> of differences.
>>
>> NCO’s ncbo does calculate the element-wise differences and
>> other statistics values, and save them to a new file.
>>
>> I believe cprnc is similar, but reports the differences to stdout.
>>
>> One advantage of cdfdiff is it does not need PnetCDF or NetCDF
>> library to compile or run.
>>
>> FYI. I updated cdfdiff to report the array indices of first
>> array element that is found different. Here is an example output.
>>
>> cdfdiff tst_rec.nc1 tst_rec.nc2 ----
>> DIFF: file format (CDF-1) != (CDF-2)
>> DIFF: variable "rec_var" of type "NC_FLOAT" at element [1, 1]
>> DIFF: variable "fix_var" of type "NC_FLOAT" at element [1, 2]
>> Number of differences in header: 1
>> Number of differences in variables: 2
>>
>> Command line option -b is for verbose mode, which also reports
>> what objects are the same.
> Wei-Keng -- do all these tools work ok with the PNetCDF output-files?
> -----------------------------------------------------------------------------------
> 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.
> -----------------------------------------------------------------------------------
More information about the parallel-netcdf
mailing list