Skip to content

Commit 7d1adca

Browse files
committed
Section on historyview
1 parent 2419c1d commit 7d1adca

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,32 @@ timestamp, login, cwd, script, script_dir, commandline, python_version
4343
and several entries giving the various fields of the os.uname() return value.
4444

4545
There is also an entry called `package_version_dict`, which contains a dictionary of version numbers for as many imported Python packages as it can find. So, for example, this will include the version number of numpy and osgeo (i.e. GDAL) which are imported at the time of execution.
46+
47+
## Viewer
48+
A simple viewer called ``historyview`` is provided, to display the processing history to the console. Since the whole lineage can be quite large and complex, no attempt is made to display the whole thing at once. Rather, the metadata dictionary or the list of parents can be displayed, for either the main file itself, or for a nominated ancestor file with.
49+
50+
Command line help can be displayed with ``--help``. Example output is shown below
51+
```
52+
$ historyview tstHist2.kea
53+
timestamp: 2025-04-10 08:59:08+1000
54+
login: neil
55+
uname_os: Linux
56+
uname_host: neil-Aspire-A315-34
57+
uname_release: 6.11.0-21-generic
58+
uname_version: #21~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Feb 24 16:52:15
59+
UTC 2
60+
uname_machine: x86_64
61+
cwd: /home/neil/tmp
62+
python_version: 3.11.10
63+
package_version_dict: {"_distutils_hack": "Unknown", "processinghistory":
64+
"1.0.0", "osgeo": "3.10.0"}
65+
UNITS: Feet
66+
DESCRIPTION: Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
67+
do eiusmod tempor incididunt ut labore et dolore magna
68+
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
69+
ullamco laboris nisi ut aliquip ex ea commodo consequat.
70+
Duis aute irure dolor in reprehenderit in voluptate velit
71+
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
72+
occaecat cupidatat non proident, sunt in culpa qui officia
73+
deserunt mollit anim id est laborum.
74+
```

0 commit comments

Comments
 (0)