-
Notifications
You must be signed in to change notification settings - Fork 0
ncdates
Dmitry Shcherbin edited this page Jan 14, 2015
·
3 revisions
Files:
Examples:
- ncdate:
[mitya@stallo-2 1993_2010_jens]$ python ~/pytools_git/ncdate ocean_avg_0102_1996_05_01.nc
ocean_avg_0102_1996_05_01.nc
ocean_time
10 830131200 830908800
1996-04-22 00:00:00 1996-05-01 00:00:00
by default time records are "ocean_time", but it is possible to change it:
ncdate AN_2007_unlim.nc --time time
- ncdate_re
- made from ncdate for scpfiles.sh and rename.sh
[mitya@stallo-2 1993_2010_jens]$ python ~/pytools_git/ncdate_re.py ocean_avg_0102_1996_05_01.nc
830131200 830908800 1996_05_01
- ncdate_full
- made from ncdate for list_date.sh
[mitya@stallo-2 1993_2010_jens]$ python ~/pytools_git/ncdate_full ocean_avg_0102_1996_05_01.nc
1996 04 22 1 ocean_avg_0102_1996_05_01.nc
1996 04 23 2 ocean_avg_0102_1996_05_01.nc
1996 04 24 3 ocean_avg_0102_1996_05_01.nc
1996 04 25 4 ocean_avg_0102_1996_05_01.nc
1996 04 26 5 ocean_avg_0102_1996_05_01.nc
1996 04 27 6 ocean_avg_0102_1996_05_01.nc
1996 04 28 7 ocean_avg_0102_1996_05_01.nc
1996 04 29 8 ocean_avg_0102_1996_05_01.nc
1996 04 30 9 ocean_avg_0102_1996_05_01.nc
1996 05 01 10 ocean_avg_0102_1996_05_01.nc
- date_time:
[mitya@stallo-2 1993_2010_jens]$ python ~/pytools_git/date_time.py s 830131200
with respect to a reference date 1970-01-01 00:00:00
the provided date is: 1996-04-22 00:00:00
[mitya@stallo-2 1993_2010_jens]$ python ~/pytools_git/date_time.py d 8301
with respect to a reference date 1970-01-01
the provided date is: 1992-09-23
- date_time_any:
[mitya@stallo-2 1993_2010_jens]$ python ~/pytools_git/date_time_any.py d 8301 9999 1234
['/home/mitya/pytools_git/date_time_any.py', 'd', '8301', '9999', '1234']
with respect to a reference date 1970-01-01 00:00:00
the provided dates are:
/home/mitya/pytools_git/date_time_any.py
d
8301
1992-09-23 00:00:00
9999
1997-05-18 00:00:00
1234
1973-05-19 00:00:00