1.6.2.1. showtime.py – Display information of a netcdf time axis

Usage:
showtime.py [options] ncfile
Description:

Show time axis dates of a netcdf file.

Options:
-h, --help

show this help message and exit

-t TNAME, --time=TNAME

name of the time axis or variable

-v VNAME, --var=VNAME

name of the variable from which to guess time

-s TSLICE, --slice=TSLICE

time slice (examples: “2”, “:-2:4”)

-m, --minmax

show min/max only (default: False)

-n NCOL, --ncol=NCOL

number of comlumns for output (default: 5)

-f FORMAT, --format=FORMAT

date format (default: %Y-%m-%d %H:%M:%S)

Examples:

These examples are executed from the bin directory of the distribution.

$> showtime.py -v high_tides --ncol=3 ../data/tide.sealevel.BREST.mars.nc
276 values:
2006-07-15 06:15:15, 2006-07-15 18:45:15, 2006-07-16 07:15:16
2006-07-16 19:30:16, 2006-07-17 08:15:17, 2006-07-17 20:30:17
2006-07-18 09:15:18, 2006-07-18 21:45:18, 2006-07-19 10:45:19
...
$> showtime.py --format='%b %m %Y' --minmax ../data/mars3d.t.nc
min: 07 Jan 2008
max: 09 Jan 2008