Re: [Therion] Running Xtherion on Mac OS X Catalina

2020-03-31 Thread Philippe Vernant
Here are my notes of the last install on High Sierra with homebrew, in case it 
can help …

1) Install homebrew 
2) Install survex via homebrew (cf. survex site web)
3) brew install tcl-tk
4) install the mactex package
5) add in ~/.profile : 
   export PATH=/Library/TeX/texbin:$PATH
6) brew install vtk
7) In therion/loch, change the Makefile :
   comment: #VTKLIBPATH = $(shell tclsh ./getvtkver.tcl libpath)
   add: VTKLIBPATH = /usr/local/lib/
8) In Therion directory 
   make config-macosx
   make

Phil


> On 31 Mar 2020, at 18:27, Philippe Vernant  wrote:
> 
> Hi David,
> 
> Did you try to reinstall Therion after updating to Catalina ? I don’t have 
> Catalina, I’m sticking to High Sierra where everything is running fine so far.
> How do you usually install Therion on a Mac ?
> 
> Best,
> Phil
> 
> 
>> On 30 Mar 2020, at 22:04, David Eason via Therion > > wrote:
>> 
>> Dear Therion mailing list,
>> 
>> I wonder if anyone has had any success building, installing and running 
>> Therion on Mac OS X Catalina (OS 10.15.2)? I have successfully built and 
>> installed Therion 5.4.4, and Therion and Loch both run fine. Before the 
>> upgrade, everything worked OK, but it looks like some things have moved 
>> around in this version of OS X, amongst other things breaking. When I try to 
>> run Xtherion, Tcl/Tk can't seem to locate BWidget, and the GUI can't run:
>> 
>> Error in startup script: can't find package BWidget
>> while executing
>> "package require BWidget"
>> (file "/usr/local/bin/xtherion" line 12268)
>> 
>> I have tried unpacking the bwidget 1.9.14 scripts to /usr/local/lib thinking 
>> that tcl would check there, and then also tried to set auto_path to force 
>> tcl to look in there, but it won't seem to start up. There's a pause, and 
>> Wish seems to start up, and yet XQuartz actually opens; I have tcl 8.6 
>> installed and can run the tclsh OK.
>> 
>> It's been frustrating me for a while, and I saw this lockdown in the UK as 
>> an opportunity to have another look at this. Any pointers or tips would be 
>> most welcome.
>> 
>> Regards,
>> David Eason
>> ___
>> 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] Running Xtherion on Mac OS X Catalina

2020-03-31 Thread Philippe Vernant
Hi David,

Did you try to reinstall Therion after updating to Catalina ? I don’t have 
Catalina, I’m sticking to High Sierra where everything is running fine so far.
How do you usually install Therion on a Mac ?

Best,
Phil


> On 30 Mar 2020, at 22:04, David Eason via Therion  wrote:
> 
> Dear Therion mailing list,
> 
> I wonder if anyone has had any success building, installing and running 
> Therion on Mac OS X Catalina (OS 10.15.2)? I have successfully built and 
> installed Therion 5.4.4, and Therion and Loch both run fine. Before the 
> upgrade, everything worked OK, but it looks like some things have moved 
> around in this version of OS X, amongst other things breaking. When I try to 
> run Xtherion, Tcl/Tk can't seem to locate BWidget, and the GUI can't run:
> 
> Error in startup script: can't find package BWidget
> while executing
> "package require BWidget"
> (file "/usr/local/bin/xtherion" line 12268)
> 
> I have tried unpacking the bwidget 1.9.14 scripts to /usr/local/lib thinking 
> that tcl would check there, and then also tried to set auto_path to force tcl 
> to look in there, but it won't seem to start up. There's a pause, and Wish 
> seems to start up, and yet XQuartz actually opens; I have tcl 8.6 installed 
> and can run the tclsh OK.
> 
> It's been frustrating me for a while, and I saw this lockdown in the UK as an 
> opportunity to have another look at this. Any pointers or tips would be most 
> welcome.
> 
> Regards,
> David Eason
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion

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


[Therion] Question for lox generating strange spikes at passage end

2020-03-31 Thread Benedikt Hallinger

Hello,
in a dataset i get a strange behavior regarding the loch model at 
passage ends:


At station 1.10 a weird spike is produced in the loch model, that should 
not be there.
If one comments out some branch that is not located near 1.10, the 
problem goes away.


What causes these spikes?

Attached a test set with comented section, thus producing correct ending 
of the tunnel.
Also, an image showing the problem (left: wrong spike, right: correct 
result with the branch commented)



Thanks alot,
Beni

test.tar.gz
Description: GNU Zip compressed data
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Running Xtherion on Mac OS X Catalina

2020-03-31 Thread Martin Sluka via Therion
This my file .bash_profile in my user directory



export PATH="/usr/local/opt/tcl-tk/bin:$PATH"

export LDFLAGS="-L/usr/local/opt/tcl-tk/lib"
export CPPFLAGS="-I/usr/local/opt/tcl-tk/include"

export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig”



But I’m not sure you may just copy it. It depends on your system configuration. 
It is not basic user level I’m afraid.

Maybe somebody may explain it more detailed, please.

Martin


> 30. 3. 2020 v 22:04, David Eason via Therion :
> 
> Dear Therion mailing list,
> 
> I wonder if anyone has had any success building, installing and running 
> Therion on Mac OS X Catalina (OS 10.15.2)? I have successfully built and 
> installed Therion 5.4.4, and Therion and Loch both run fine. Before the 
> upgrade, everything worked OK, but it looks like some things have moved 
> around in this version of OS X, amongst other things breaking. When I try to 
> run Xtherion, Tcl/Tk can't seem to locate BWidget, and the GUI can't run:
> 
> Error in startup script: can't find package BWidget
> while executing
> "package require BWidget"
> (file "/usr/local/bin/xtherion" line 12268)
> 
> I have tried unpacking the bwidget 1.9.14 scripts to /usr/local/lib thinking 
> that tcl would check there, and then also tried to set auto_path to force tcl 
> to look in there, but it won't seem to start up. There's a pause, and Wish 
> seems to start up, and yet XQuartz actually opens; I have tcl 8.6 installed 
> and can run the tclsh OK.
> 
> It's been frustrating me for a while, and I saw this lockdown in the UK as an 
> opportunity to have another look at this. Any pointers or tips would be most 
> welcome.
> 
> Regards,
> David Eason
> ___
> 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] LOX: Measure distance from station to surface

2020-03-31 Thread Benedikt Hallinger

Hi there,
i released version 1.0 of therionsurface2survex 
(https://github.com/hbeni/therionsurface2survex)
and now the problem with this is, that the name is not fitting 
anymore...


Version 1.0 can:
- read GDAL ASCII grids directly [1]
- read therion "surface" blocks
- write survex .swx files containing the mesh
- write therion source files containing the mesh (flags surface) [2]


[1] i niticed that those files do not contain information about the 
coordinate-system used, so you need to add this manually afterwards. 
Question to all of you: would you expect an option that the tool adds it 
itself?
[2] would be my preferred way because it allows better control about 
further usage, also integration is more straightforward.



Am 2020-03-28 1:21, schrieb Benedikt Hallinger:

Thanks, but i'm not into python :)


Am 2020-03-28 1:18, schrieb Philippe Vernant:

Hi,

There is an easy way to extract coordinates from the therion sql
export. Then using a shell script and GMT could provide the depth of
each point below the surface. I know that there is now a GMT library
under Python, if they have implemented the function in the library,
everything could be wrapped up in a single python script.

Cheers,
Phil


On 28 Mar 2020, at 00:28, Benedikt Hallinger  
wrote:


cavern had eaten itself, but after pushing ctrl-c in the shell 
running therion, the 3d  file was written successfully and the output 
was nice.


I enhanced the therion wiki a little with a link to the tool.

Sorry, i have no clue how to cross compile this for windows.


Am 2020-03-27 23:51, schrieb Benedikt Hallinger:

Hi there,
i just wrote a small tool to do the conversion from a therion 
surface

mesh into survex format:
https://github.com/hbeni/therionsurface2survex
It would be nice if some C++ programmers can look over the code as
this is my first c++ endeavour.
The program basically parses the therion source file and generates
*fix commands out of it together with nosurvey-centerline connecting
the stations to a mesh.
The resulting .swx file then can be put trough survex' cavern 
program

to generate a 3d file of the mesh.
That can be easily combined with a 3d file of the cave generated 
from

therion (using the import statements). For ease of use provided a
basic example for combining in the readme. A sample to parse a mesh 
is

in the projects example/ folder, however i also tested it positive
with the rabbit cave example.
With my dataset the calculation seems to take a little longer
there are 388.800 fixe stations in the surface mesh giving a 31M
swx-file in total.
I hope this will finish somtime (running already for 25 minutes) but
maybe i overloaded cavern with this.
Otherwise i probably need to turn down the grid resolution 
(currently

10m grid size).
Am 2020-03-26 23:23, schrieb Tarquin Wilton-Jones:
However, my aven does not enable me to avtivate it in the view 
menu, its
disabled (greyed out), i assume because i do not have surface data 
in

the file?

Sounds like it. It works based on legs that have:
flags surface
1 2 9.8 123 0
flags not surface
Or if you have used TerrainTool to export it as a grid, it will 
have

added that for you.
This has been very easy for us in our projects because we either 
knew
exactly which line to follow on the surface beforehand, or we 
surveyed
the cave first then surveyed over the surface afterwards, staying 
above
the passage so we could have a useful measure of the surface above 
the cave.

In more complex caves, I rely on TerrainTool to cover the surface.
Looking forward to being able to use the new more accurate NASADEM 
so

that the measurements are actually accurate.

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


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

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