Mercurial > hg > cc > cirrus_work
comparison bin/by_interval.py @ 215:d2c4fec1ed21
correct Usage
author | Henry S. Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Thu, 15 Feb 2024 22:31:09 +0000 |
parents | bc66c6098e5e |
children |
comparison
equal
deleted
inserted
replaced
214:94072b090fdd | 215:d2c4fec1ed21 |
---|---|
1 #!/usr/bin/python3 | 1 #!/usr/bin/python3 |
2 '''Split stamped data by time interval, e.g. year or month | 2 '''Split stamped data by time interval, e.g. year or month |
3 Usage: origin-interval output-dir by_interval.py interval-file sorted-ks-file.tsv [field] | 3 Usage: by_interval.py origin-interval output-dir interval-file sorted-ks-file.tsv [field] |
4 If field is given, ks-file is tsv and stamp is in that field, | 4 If field is given, ks-file is tsv and stamp is in that field, |
5 which, as for cut, is 1-origin. Interval IDs are assumed to be sequential numbers. | 5 which, as for cut, is 1-origin. Interval IDs are assumed to be sequential numbers. |
6 ''' | 6 ''' |
7 | 7 |
8 import sys, os, os.path | 8 import sys, os, os.path |