Re: [Therion] Compile error do to "calibrate" command

2021-09-30 Thread Torsten Schnitter
Quantity List doesn't contain fromdepth or todepth. But only depth.

Btw with "calibrate depth 0 -1" there is no error while compiling.


> Martin Sluka via Therion  hat am 30.09.2021 14:08 
> geschrieben:
> 
> 
> But you use fromdepth and todepth as quantity. Shouldn’t it be calibrate 
> fromdepth todepth 4 -1 ?
> 
> Martin S.
> 
> 
> > > 30. 9. 2021 v 12:59, Torsten Schnitter 
> mailto:torsten.schnit...@netcologne.de >:
> > 
> > Due to the different waterlevel there is a difference of 4.0m in 
> > depth readings. 
> > To correct this I used "calibrate depth 4 -1" within the resurvey 
> > data. 
> > 
> > > 
> From Therionbook:
> 
> calibrate   [] . set the instrument 
> calibration.
> The measured value is calculated using the following formula: measured 
> value =
> (read value - zero error) x scale. The supported quantities are the same 
> as sd.
> 
> From Survex manual:
> 
> 
> 4.5.3. CALIBRATE
> 
> Syntax
> *calibrate   [] *calibrate  list>   [] *calibrate default
> 
> Example
> 
> *calibrate tape +0.3
> 
> Description
> 
> *calibrate is used to specify instrument calibrations, via a zero error 
> and a scale factor. By default, the zero error is 0.0 and the scale factor 
> 1.0 for all quantities.
> 
>  is one of TAPE|COMPASS|CLINO|COUNTER|DEPTH|DECLINATION|X|Y|Z
> 
> Several quantities can be given in  - the specified 
> calibration will be applied to each of them.
> 
> You need to be careful about the sign of the ZeroError. Survex follows 
> the convention used with scientific instruments - the ZeroError is what the 
> instrument reads when measuring a reading which should be zero. So for 
> example, if your tape measure has the end missing, and you are using the 30cm 
> mark to take all measurements from, then a zero distance would be measured as 
> 30cm and you would correct this with:
> 
> *CALIBRATE tape +0.3
> 
> If you tape was too long, starting at -20cm (it does happen!) then you 
> can correct it with:
> 
> *CALIBRATE tape -0.2
> 
> Note: ZeroError is irrelevant for Topofil counters and depth gauges since 
> pairs of readings are subtracted.
> 
> In the first form in the synopsis above, the zero error is measured by 
> the instrument itself (e.g. reading off the number where a truncated tape now 
> ends) and any scale factor specified applies to it, like so:
> 
> Value = ( Reading - ZeroError ) * Scale (Scale defaults to 1.0)
> 
> In the second form above (supported since Survex 1.2.21), the zero error 
> has been measured externally (e.g. measuring how much too long your tape is 
> with a ruler) - the units of the zero error are explicitly specified and any 
> scale factor isn’t applied to it:
> 
> Value = ( Reading * Scale ) - ZeroError (Scale defaults to 1.0)
> 
> If the scale factor is 1.0, then the two forms are equivalent, though 
> they still allow you to differentiate between how the zero error has been 
> determined.
> 
> With older Survex versions, you would specify the magnetic declination 
> (difference between True North and Magnetic North) by using *calibrate 
> declination to set an explicit value (with no scale factor allowed). Since 
> Survex 1.2.22, it’s recommended to instead use the new *declination command 
> instead - see the documentation of that command for more details. 
> 
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
> 
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Compile error do to "calibrate" command

2021-09-30 Thread Martin Sluka via Therion
But you use fromdepth and todepth as quantity. Shouldn’t it be calibrate 
fromdepth todepth 4 -1 ?

Martin S.

> 30. 9. 2021 v 12:59, Torsten Schnitter :
> 
> Due to the different waterlevel there is a difference of 4.0m in depth 
> readings. 
> To correct this I used "calibrate depth 4 -1" within the resurvey data. 

From Therionbook:

calibrate   [] . set the instrument 
calibration.
The measured value is calculated using the following formula: measured value =
(read value - zero error) x scale. The supported quantities are the same as sd.

From Survex manual:

4.5.3. CALIBRATE

Syntax
*calibrate   [] *calibrate  
  [] *calibrate default

Example

*calibrate tape +0.3
Description

*calibrate is used to specify instrument calibrations, via a zero error and a 
scale factor. By default, the zero error is 0.0 and the scale factor 1.0 for 
all quantities.

 is one of TAPE|COMPASS|CLINO|COUNTER|DEPTH|DECLINATION|X|Y|Z

Several quantities can be given in  - the specified calibration 
will be applied to each of them.

You need to be careful about the sign of the ZeroError. Survex follows the 
convention used with scientific instruments - the ZeroError is what the 
instrument reads when measuring a reading which should be zero. So for example, 
if your tape measure has the end missing, and you are using the 30cm mark to 
take all measurements from, then a zero distance would be measured as 30cm and 
you would correct this with:

*CALIBRATE tape +0.3
If you tape was too long, starting at -20cm (it does happen!) then you can 
correct it with:

*CALIBRATE tape -0.2
Note: ZeroError is irrelevant for Topofil counters and depth gauges since pairs 
of readings are subtracted.

In the first form in the synopsis above, the zero error is measured by the 
instrument itself (e.g. reading off the number where a truncated tape now ends) 
and any scale factor specified applies to it, like so:

Value = ( Reading - ZeroError ) * Scale (Scale defaults to 1.0)

In the second form above (supported since Survex 1.2.21), the zero error has 
been measured externally (e.g. measuring how much too long your tape is with a 
ruler) - the units of the zero error are explicitly specified and any scale 
factor isn’t applied to it:

Value = ( Reading * Scale ) - ZeroError (Scale defaults to 1.0)

If the scale factor is 1.0, then the two forms are equivalent, though they 
still allow you to differentiate between how the zero error has been determined.

With older Survex versions, you would specify the magnetic declination 
(difference between True North and Magnetic North) by using *calibrate 
declination to set an explicit value (with no scale factor allowed). Since 
Survex 1.2.22, it’s recommended to instead use the new *declination command 
instead - see the documentation of that command for more details. ___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


[Therion] Compile error do to "calibrate" command

2021-09-30 Thread Torsten Schnitter
Hello List

As mentioned in my post before, sometimes I need to do a resurvey.
As the cave is an underwater cave and therefore the waterlevel can change I 
need to "correct" the depth readings.

E.g.:
The initial survey was done and the water depth at the start station was -5m at 
this time.
The resurvey was done at a different time and the water level at the same start 
station was -9m.
(to use positive numbers inside the data I use: "calibrate depth 0 -1")

initial survey:
centerline
data diving from to length compass backcompass fromdepth todepth left right up 
down
calibrate depth 0 -1
10 11 2.04 160 - 5.2 3.9 [ - -] [ - -] [ - -] [ - -]
...
endcenterline

resurvey:
centerline
data diving from to length compass backcompass fromdepth todepth left right up 
down
calibrate depth 4 -1
0 1 3.09 284 - 9.2 11.4 [ 0.2 2.6] [ 0.2 0.9] [ - -] [ 2.2 0.2]
1 2 2.92 298 - 11.4 12.5 [ 2.6 1.8] [ 0.9 1.3] [ - 1.1] [ 0.2 1.1]
2 3 1.96 259 - 12.5 13.7 [ 1.8 1.2] [ 1.3 1.2] [ 1.1 1.2] [ 1.1 0.0]
...
endcenterline

Station 10 from the initial survey is identical to station 0 from resurvey and 
I do connect these using equate command.
Due to the different waterlevel there is a difference of 4.0m in depth readings.
To correct this I used "calibrate depth 4 -1" within the resurvey data.
My assumption for e.g. station 0 was: (9.2 - 4) * -1 = -5.2 (identical to 
station 10 from initial survey: (5.2 - 0) * -1 = -5.2)
(as discribed in the therion book on page 19: measured value = (read value - 
zero error) * scale)

But doing so I get an error from the compiler:
therion 6.0.0 (2021-07-13)
- using Proj 5.1.0, compiled against 5.1.0
initialization file: C:\Program Files (x86)\Therion/therion.ini
reading ... done
configuration file: thconfig-survey.thc
reading ... done
reading source files ... done
preprocessing database ... done
C:\Program Files (x86)\Therion\therion.exe: error -- test.th [64] -- length 
reading is less than change in depth
writing xtherion file ... done

Line 64 is station 2 from resurvey. Depth difference is 13,7-12,5=1,2 and 
Distance is 1,96 (1,96 > 1,2).
I don't understand this error.
When changing "calibrate depth 4 -1" to "calibrate depth 0 -1" in the resurvey
there is no error compiling the data. But the depth readings are not correct 
then.

What do I get wrong with calibrate command?

Torsten
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion