Skip to content
Dmitry Shcherbin edited this page Jan 14, 2015 · 2 revisions

Diff utility:

File:

Usage:

[mitya@stallo-1 bin]$ pydiff -h
usage: pydiff [-h] [-i INF INF] [-v VARIABLE] [--time TIME]
              [--time_var TIME_VAR] [--time_f TIME_F] [--vert VERT]
              [--xzoom XZOOM] [--yzoom YZOOM] [--var_min VAR_MIN]
              [--var_max VAR_MAX]
 
pydiff
 
optional arguments:
  -h, --help           show this help message and exit
  -i INF INF           Two input files to diff
  -v VARIABLE          variable
  --time TIME          time counter
  --time_var TIME_VAR  time var
  --time_f TIME_F      time format
  --vert VERT          vertical coordinate number
  --xzoom XZOOM        zoom along x(?) direction, range is defined in percents
                       in i:k format, where 0<=i<k<=100
  --yzoom YZOOM        zoom along y(?) direction, range is defined in percents
                       in i:k format, where 0<=i<k<=100
  --var_min VAR_MIN    minimum value of variable
  --var_max VAR_MAX    minimum value of variable

Usage example:

[mitya@stallo-1 1993_2010_jens]$ pydiff -i ocean_avg_0605_2010_02_07.nc ocean_avg_0606_2010_02_17.nc -v hice

NB: '--time_f' is a switch between 's' and 'd', seconds and days, by default it is in seconds.