Skip to content

Commit 81eeffa

Browse files
authored
Merge pull request #11 from MrClock8163/feature/docs
Documentation update
2 parents 390a256 + ae33789 commit 81eeffa

38 files changed

+1040
-90
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# I-man
1+
<h1 align="center">
2+
<img src="https://raw.githubusercontent.com/mrclock8163/instrumentman/main/docs/iman_logo.png" alt="I-man logo" width="300">
3+
</h1><br>
24

35
[![PyPI - Version](https://img.shields.io/pypi/v/instrumentman)](https://pypi.org/project/instrumentman/)
46
[![Python Version](https://img.shields.io/python/required-version-toml?tomlFilePath=https%3A%2F%2Fraw.githubusercontent.com%2FMrClock8163%2FInstrumentman%2Frefs%2Fheads%2Fmain%2Fpyproject.toml)](https://pypi.org/project/instrumentman/)

docs/_static/css/custom.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11

22
:root > * {
3-
--md-primary-fg-color: #90AF90;
3+
--md-primary-fg-color: #CFB41A;
44
--md-accent-fg-color: #a9221d;
5-
--md-typeset-a-color: #4a644c;
5+
/* --md-typeset-a-color: #4a644c; */
66
}
77

88
[data-md-color-scheme="slate"] {
99
/* --md-primary-fg-color:#4a644c; */
10-
--md-typeset-a-color: #90AF90;
10+
--md-typeset-a-color: #CFB41A;
1111
--md-code-bg-color: #333746;
1212
}

docs/_static/favicon.svg

Lines changed: 23 additions & 0 deletions
Loading

docs/_static/logo.svg

Lines changed: 23 additions & 0 deletions
Loading

docs/about.rst

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
Information
2+
===========
3+
4+
Command Structure
5+
-----------------
6+
7+
Different applications might implement multiple different commands, that are
8+
relevant to the task. While these are defined and documented in application
9+
subpackages, on the user level, the commands are grouped into action based
10+
command groups instead for easier use.
11+
12+
For instance, the Set Measurement application defines commands for conducting
13+
the measurements themselves, validating and merging multiple session outputs,
14+
and also for calculating results. These can be accessed through the following
15+
commands:
16+
17+
.. code-block:: shell
18+
19+
iman measure sets -h
20+
iman merge sets -h
21+
iman validate sets -h
22+
iman calc sets -h
23+
24+
Documentation
25+
-------------
26+
27+
The different commands are documented in their application groups to give
28+
a better overview of the processes. Every page shows the actual command to
29+
invoke the program, some additional context and optional examples, and an
30+
automatically generated view of the ``--help`` page of the command.

docs/changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. mdinclude:: ../CHANGELOG.md

docs/commands/files/download.rst

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
Downloading
2+
===========
3+
4+
A useful file management feature is the ability to download a file from the
5+
instrument. The download command can be used to download a file identified
6+
by either a file name and type, or a full file path.
7+
8+
.. caution::
9+
:class: warning
10+
11+
File downloads over serial (especially Bluetooth) are rather slow, and
12+
greatly affected by the communication speed settings.
13+
14+
Process
15+
-------
16+
17+
The download process is carried out by exchanging chunks of data. The
18+
individual chunks are sent down by the instrument, and slowly reassambled on
19+
the receiving side. The block size can be customized, but the maximum is 450
20+
hex characters/block (or 225 bytes). Newer instruments support large file
21+
downloads, where the block size can be increased up to 1800 characters/block.
22+
23+
Under normal circumstances it is recommended to use the maximum chunk size,
24+
as this results in the fastest transfer. If the connection is not completely
25+
reliable, decreasing the chunk size might reduce the size of data, that needs
26+
to be resent due to timed out exchanges.
27+
28+
Requirements
29+
------------
30+
31+
- GeoCom capable instrument
32+
33+
Examples
34+
--------
35+
36+
.. code-block:: shell
37+
:caption: Downloading the root file of a job
38+
39+
iman download file -f database COM1 job.xcf job.xcf
40+
41+
// or
42+
43+
iman download file COM1 DBX/job.xcf job.xcf
44+
45+
.. code-block:: shell
46+
:caption: Downloading an exported file from a CF card
47+
48+
iman list files -d cf COM1 Data/coordinates.txt coordinates.txt
49+
50+
Usage
51+
-----
52+
53+
.. click:: instrumentman.filetransfer:cli_download
54+
:prog: iman download file

docs/commands/files/index.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:icon: material/file-outline
2+
3+
Files
4+
=====
5+
6+
Newer instruments implement file system commands, that can be used to
7+
manage, browse or retrieve files from the device.
8+
9+
.. toctree::
10+
:maxdepth: 1
11+
12+
list
13+
download

docs/commands/files/list.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
Listing
2+
=======
3+
4+
The most basic file management function is the ability to list files of
5+
a specified type in a specified directory on a memory device of the instrument.
6+
7+
The listing command can be used to retrieve the list of files belonging to a
8+
certain file type, or located in a certain directory. In addition to the
9+
file name, the file size in bytes and the date of last modification is also
10+
displayed.
11+
12+
Requirements
13+
------------
14+
15+
- GeoCom capable instrument
16+
17+
Paths
18+
-----
19+
20+
The most general way of file listing is to not specify a file type (defaulting
21+
to unknown), and giving the directory path. Such a path should use ``/`` as
22+
separators (contrary to other Windows conventions) and should end with a ``/``.
23+
24+
If a special type of file is to be listed (e.g. database), then it is enough
25+
to specify the file type, the path can be left out.
26+
27+
Examples
28+
--------
29+
30+
.. code-block:: shell
31+
:caption: Listing database files in internal memory
32+
33+
iman list files -f database COM1
34+
35+
.. code-block:: shell
36+
:caption: Listing all exported files on a CF card
37+
38+
iman list files -d cf COM1 Data/
39+
40+
Usage
41+
-----
42+
43+
.. click:: instrumentman.filetransfer:cli_list
44+
:prog: iman list files

docs/commands/inclination/calc.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
Calculation
2+
===========
3+
4+
After the measurements are done, the average inclination and the deviation
5+
can be calculated from the results. The results give the coordinate system
6+
axis-aligned inclination components and standard deviations, as well as the
7+
resulting inclination and its direction.
8+
9+
Methodology
10+
-----------
11+
12+
In each horizontal position 2 angles are given. The calculation is carried
13+
out with the following general steps:
14+
15+
#. For each position
16+
17+
#. Calculate cross and length offset of the standing axis 1 meter above
18+
the measurement center.
19+
#. Convert cross-length coordinates to polar
20+
#. Correct inclination direction with instrument bearing
21+
#. Convert polar inclination back to coordinates
22+
23+
#. Calculate mean and deviation of inclination coordinates
24+
#. Convert mean coordinates to angles for axis-aligned results
25+
#. Convert mean coordinates to polar inclination
26+
27+
Results can be either printed to the terminal, or saved a CSV file.
28+
29+
Usage
30+
-----
31+
32+
.. click:: instrumentman.inclination:cli_calc
33+
:prog: iman calc inclination

0 commit comments

Comments
 (0)