|
| 1 | +Measure |
| 2 | +======= |
| 3 | + |
| 4 | +.. code-block:: shell |
| 5 | + :caption: Invoking the application |
| 6 | +
|
| 7 | + python -m geocompy.apps.setmeasurement.measure -h |
| 8 | +
|
| 9 | +Once the target definition JSON is created, the measurement sets can |
| 10 | +be started. In each measurement session the time, internal temperature |
| 11 | +and battery level are recorded at start. For each target the horizontal angle, |
| 12 | +zenith angle and slope distance are recorded. |
| 13 | + |
| 14 | +Order |
| 15 | +----- |
| 16 | + |
| 17 | +The measurement order can have a significant effect on the time it takes to |
| 18 | +complete a full cycle. The fastest order of face 1-2 measurement pairs is |
| 19 | +``ABba`` or ``ABab``, that involve the smallest number of face changes. Other |
| 20 | +orders might be benefitial if the targets cannot be occupied for the duration |
| 21 | +of the full cycle. The figure below illustrates the different supported |
| 22 | +measurement patterns. The default order is ``ABba``. |
| 23 | + |
| 24 | +.. note:: |
| 25 | + |
| 26 | + The measurement order has the most significant effect on overall cycle |
| 27 | + duration with older instruments, where the switch between two faces is |
| 28 | + usuallay takes around 5-6 seconds. These small intervals can add up over |
| 29 | + long sets or surveys. |
| 30 | + |
| 31 | +.. image:: order.png |
| 32 | + :width: 400 |
| 33 | + :align: center |
| 34 | + :alt: Set measurement order |
| 35 | + |
| 36 | +Results |
| 37 | +------- |
| 38 | + |
| 39 | +The results from each session are saved into a separate JSON file. These |
| 40 | +can be later merged for processing if necessary. |
| 41 | + |
| 42 | +Scheduling |
| 43 | +---------- |
| 44 | + |
| 45 | +Periodic measurement sessions can be echieved by settings up a scheduled |
| 46 | +task in the scheduler tool of the respective operating system of the |
| 47 | +controlling computer (e.g. Task Scheduler on Windows, crontab on Linux). |
| 48 | + |
| 49 | +Examples |
| 50 | +-------- |
| 51 | + |
| 52 | +.. code-block:: shell |
| 53 | + :caption: Logging to file |
| 54 | +
|
| 55 | + python -m geocompy.apps.setmeasurement.measure --debug COM3 targets.json results >> tps.log 2>&1 |
| 56 | +
|
| 57 | +.. code-block:: shell |
| 58 | + :caption: Enabling connection retries and timeout recovery attempts (might be useful with bluetooth connections) |
| 59 | +
|
| 60 | + python -m geocompy.apps.setmeasurement.measure -r 3 -sat COM3 targets.json results |
| 61 | +
|
| 62 | +.. code-block:: shell |
| 63 | + :caption: Measuring to just a subset of the targets |
| 64 | +
|
| 65 | + python -m geocompy.apps.setmeasurement.measure -pt "P1,P2,P8" COM3 targets.json results |
| 66 | +
|
| 67 | +.. code-block:: shell |
| 68 | + :caption: Measuring in face 1 only |
| 69 | +
|
| 70 | + python -m geocompy.apps.setmeasurement.measure -o ABCD COM3 targets.json results |
| 71 | +
|
| 72 | +Usage |
| 73 | +----- |
| 74 | + |
| 75 | +.. argparse:: |
| 76 | + :module: geocompy.apps.setmeasurement.measure |
| 77 | + :func: cli |
0 commit comments