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 -b, --verbose Print messages to show progress.\n\
49 -d, --data Compare data (variable values).\n\
50 -C, --maxdiff=CNT Print differences up until CNT messages per var.\n\
51 -D, --debug Prints verbose debug messages.\n\
52 -f, --force Forcefully compare, do not stop after first\n\
54 -F, --fortran Print position indices using Fortran style\n\
55 (1-based reverse order).\n\
56 -g, --global Compare global attributes.\n\
58 -G, --globalex att1[,...] Exclude global attributes att1[,...].\n\
60 -h, --history Compare global history attribute.\n\
62 -H, --help Give this usage message.\n\
64 -m, --metadata Compare metadata, excluding global attributes.\n\
65 -M, --missing Ignore difference between values that have\n\
66 different missing_value and/or _FillValue.\n\
67 Attribute differences are still reported.\n\
68 -N, --nans-are-equal Allow NaNs to be equal.\n\
69 -n, --notolerance Turn off 0.0001 percent auto-tolerance for float and double.\n\
70 -p, --precision='%%.17g' Precision of difference printing\n\
71 (default is '%%g').\n\
72 Use '%%x' to print bytes.\n\
73 -s, --report-identical-files\n\
74 Report when files are the same.\n\
75 -t, --tolerance=TOL Compare if absolute difference > TOL.\n\
76 -T, --Tolerance=TOL Compare if relative percent difference > TOL.\n\
77 -v, --variable=var1[,...] Compare variable(s) var1[,...] only.\n\
78 -V, --version Print program version.\n\
79 -x, --exclude=var1[,...] Exclude variable(s) var1[,...].\n\
80 -w, --warn=tag[,...] Selectively make certain differences\n\
81 exceptions, but still print messages.\n\
82 Supported tags and their meanings:\n\
83 all: All differences.\n\
84 format: File formats.\n\
85 eos: Extra attribute end-of-string nulls.\n\
87 Original development by Remik . Ziemlinski @ noaa . gov.\n\
89 Converted to C++ for type generalization by Richard . Healy @ NASA . gov (January 2015)\n\
93 #define NCCMP_MAX_STRINGS 256
96 #define NCCMP_W_TAGS "all,format,eos"
97 #define NCCMP_W_NUMTAGS 3
99 #define NCCMP_W_FORMAT 1
100 #define NCCMP_W_EOS 2
142 int getnccmpopts(
int argc,
char** argv, nccmpopts* popts);
int getnccmpopts(int argc, char **argv, nccmpopts *popts)
void freenccmpopts(nccmpopts *popts)
void initnccmpopts(nccmpopts *popts)
char warn[NCCMP_W_NUMTAGS]