Go to the documentation of this file.
39 Compare two NetCDF files.\n\
40 nccmp is silent when files are equivalent, otherwise it will echo to STDERR whether metadata or a specific variable differs. By default, comparing stops after the first difference.\n\
42 Exit code 0 is returned for identical files, 1 for different files, and 2 for a fatal error.\n\
44 Usage: nccmp [OPTION...] file1 file2\n\
46 -A, --Attribute=att1[,...] Ignore attribute(s) att1[,...]\n\
48 -a, --all Compare all metadata, compare data, forcefully compare\n\
49 Print up to 10 differences per var (can be overridden)\n\
50 -e, --extent=X Compare up to X values per var\n\
51 -b, --verbose Print messages to show progress.\n\
52 -d, --data Compare data (variable values).\n\
53 -C, --maxdiff=CNT Print differences up until CNT messages per var.\n\
54 -D, --debug Prints verbose debug messages.\n\
55 -f, --force Forcefully compare, do not stop after first\n\
57 -F, --fortran Print position indices using Fortran style\n\
58 (1-based reverse order).\n\
59 -g, --global Compare global attributes.\n\
61 -G, --globalex att1[,...] Exclude global attributes att1[,...].\n\
63 -h, --history Compare global history attribute.\n\
65 -H, --help Give this usage message.\n\
67 -m, --metadata Compare metadata, excluding global attributes.\n\
68 -M, --missing Ignore difference between values that have\n\
69 different missing_value and/or _FillValue.\n\
70 Attribute differences are still reported.\n\
71 -N, --nans-are-equal Allow NaNs to be equal.\n\
72 -n, --notolerance Turn off 0.0001 percent auto-tolerance for float and double.\n\
73 -p, --precision='%%.17g' Precision of difference printing\n\
74 (default is '%%g').\n\
75 Use '%%x' to print bytes.\n\
76 -s, --report-identical-files\n\
77 Report when files are the same.\n\
78 -t, --tolerance=TOL Compare if absolute difference > TOL.\n\
79 -T, --Tolerance=TOL Compare if relative percent difference > TOL.\n\
80 -v, --variable=var1[,...] Compare variable(s) var1[,...] only.\n\
81 -V, --version Print program version.\n\
82 -x, --exclude=var1[,...] Exclude variable(s) var1[,...].\n\
83 -w, --warn=tag[,...] Selectively make certain differences\n\
84 exceptions, but still print messages.\n\
85 Supported tags and their meanings:\n\
86 all: All differences.\n\
87 format: File formats.\n\
88 eos: Extra attribute end-of-string nulls.\n\
90 Original development by Remik . Ziemlinski @ noaa . gov.\n\
92 Converted to C++ for type generalization by Richard . Healy @ NASA . gov (January 2015)\n\
96 #define NCCMP_MAX_STRINGS 256
99 #define NCCMP_W_TAGS "all,format,eos"
100 #define NCCMP_W_NUMTAGS 3
101 #define NCCMP_W_ALL 0
102 #define NCCMP_W_FORMAT 1
103 #define NCCMP_W_EOS 2
int getnccmpopts(int argc, char **argv, nccmpopts *popts)
void freenccmpopts(nccmpopts *popts)
void initnccmpopts(nccmpopts *popts)
char warn[NCCMP_W_NUMTAGS]