Page 4 of 5

Re: Therion

PostPosted: Sep 25, 2013 2:27 am
by Martin Sluka
Chupakabra wrote:It seems like Therion requires backclino to be entered, but from Survex documentation:
"The CLINO/BACKCLINO reading is not required - if it's not given, the vertical standard deviation is taken to be proportional to the tape measurement. Alternatively, individual clino readings can be given as OMIT (default "-") which allows for data where only some clino readings are missing."


Checking now. As quick help you may use definition of data without backclino before such data.

data normal from to tape compass backcompass clino backclino
A0 A1 1 100.0 - 0.0 0.3
data normal from to tape compass backcompass clino #backclino
A1 A2 1 100.0 - 0.0
data normal from to tape compass backcompass clino backclino
A2 A3 1 100.0 - 0.0 -0.1

Re: Therion

PostPosted: Dec 24, 2013 7:08 am
by Martin Sluka
New version 5.3.12 available as usual.

Re: Therion

PostPosted: Jan 15, 2014 9:06 am
by caver.adam
Just learning Therion. Thanks for keeping updates going here.

Re: Therion

PostPosted: Jan 15, 2014 9:59 am
by Martin Sluka
caver.adam wrote:Just learning Therion. Thanks for keeping updates going here.


Please, read the wiki. When you want to use particular command look into Thbook what is possible to use as parameters of that command. Remember: maps definition is independent of centreline.

Good luck!

Re: Therion

PostPosted: Jan 22, 2014 5:47 pm
by Martin Sluka

Re: Therion

PostPosted: Jan 29, 2014 7:28 pm
by caver.adam
For the life of me I can't figure out how to fill the blocks in an area. I've got the area defined. The blocks show. But I can't just fill the blocks.

Re: Therion

PostPosted: Jan 31, 2014 4:46 am
by Martin Sluka
caver.adam wrote:For the life of me I can't figure out how to fill the blocks in an area. I've got the area defined. The blocks show. But I can't just fill the blocks.


You should use modification of MetaPost code which define the area blocks. All definitions are in folder: "/therion/mpost/". If you use Windows you should download the source code of Therion, and find the folder named "mpost". There are files "thPoint.mp", "thLine.mp", "thArea.mp", … Open the "thArea.mp" by any plain text editor and copy the definition of "a_blocks_SKBB" in your "layout" section in "thconfig" file between "code metapost" and "endcode" commands. Delete the "_SKBB" from the first line of definition. It should look as this:

########################################################################
layout test

code metapost

def a_blocks (expr p) =
T:=identity;
pickup PenC;
path q, qq; q = bbox p;
picture tmp_pic;
uu := max(u, (xpart urcorner q - xpart llcorner q)/100, (ypart urcorner q - ypart llcorner q)/100);
tmp_pic := image(
for i = xpart llcorner q step 2uu until xpart urcorner q:
for j = ypart llcorner q step 2uu until ypart urcorner q:
qq := punked (((-.5uu,-.5uu)--(.5uu,-.5uu)--(.5uu,.5uu)--(-.5uu,.5uu)--cycle)
randomized (uu/2))
rotated uniformdeviate(360)
shifted ((i,j) randomized 1.6uu);
if xpart (p intersectiontimes qq) < 0:
thclean qq;
thdraw qq;
fi;
endfor;
endfor;
);
clip tmp_pic to p;
drawoptions();
draw tmp_pic;
enddef;

endcode

endlayout
########################################################################

Find the line "thdraw qq;" and type under it the line "thfill qq;"

########################################################################
if xpart (p intersectiontimes qq) < 0:
thclean qq;
thdraw qq;
thfill qq;
########################################################################

It is quite simple - "thdraw qq;" will draw the border of particular block and "thfill qq;" will fill it with defined color.

and as last step add to layout - after line "endcode" - definition of color of symbol:

########################################################################
symbol-color area blocks [20 40 0]
########################################################################

[20 40 0] is definition of color in MetaPost code. It represents RGB values from 0 to 100 % [0 0 0] is black [100 100 100] is white.

and you should receive something as this:

Image

Re: Therion

PostPosted: Feb 1, 2014 10:36 am
by caver.adam
Ah!

I'm using windows. Couldn't figure out where to find the files...until now!

Re: Therion

PostPosted: Feb 2, 2014 5:19 am
by Martin Sluka
download the source code, decompress it and there is complete folder structure. Or just copy it from my message.

Re: Therion

PostPosted: Feb 23, 2014 4:16 am
by Martin Sluka
There is new version 5.3.14 of Therion available for download: http://therion.speleo.sk/download.php

FINALY the contextual menu (right click mouse) works!!! in map editor window.

It is possible to switch off inactive scraps in map editor too!!!

Re: Therion

PostPosted: Feb 23, 2014 5:06 pm
by heinrich
Hi,

I failed to compile Therion on Mac OSX Mavericks.
I tried to follow the instructions from the thereon wiki page.
Anybody out there with more success?
Any help would be greatly appreciated!

Best regards and many thanks in advance,
Heinrich

Re: Therion

PostPosted: Feb 24, 2014 5:37 am
by Martin Sluka
heinrich wrote:Hi,

I failed to compile Therion on Mac OSX Mavericks.
I tried to follow the instructions from the thereon wiki page.
Anybody out there with more success?
Any help would be greatly appreciated!

Best regards and many thanks in advance,
Heinrich


Hi, may you send me compilation log on private address: martinsluka@mac.com

Re: Therion

PostPosted: Feb 24, 2014 11:46 am
by heinrich
Hi Martin,
this was fast!
I am going to send a log-file

Thank you!
Heinrich

Re: Therion

PostPosted: Feb 25, 2014 11:53 am
by driggs
heinrich wrote:I failed to compile Therion on Mac OSX Mavericks.


Quoth the Therion website: "Source code compiles on Linux, Windows and partially MacOS X"

I was able to compile everything but one or two of the extra GUI tools on OS X 10.9.1. You should have the XCode Command Line Tools installed, and homebrew is a great way to install various other dependencies.

Though it's been a while, I think that all I had to do once I had all the deps in place was:

Code: Select all
make config-macosx
make
sudo make install  # (optional)


I may have had to `cd xtherion` and repeat those build commands to build that executable separately. I wasn't able to get `loch` to compile, perhaps because of a problem with the `vtk` dependency?

Now `therion` and `xtherion` are compiled and can be run from the commandline! ...

Image

Oh, but you will also need to install Survex if you want `therion` to actually do something! The latest version, 1.2.11, will almost compile on OS X Mavericks with the homebrew version of wxWidgets 3.0.0 (`brew install wxmac`), if you edit the '--static' line out of its 'wx-config' file, then compile with `buildmacosx --no-install-wx`. However, the homebrew version of libproj (`brew install proj`) builds 64-bit while most of the other deps build 32-bit; if you can figure out how to build libproj so that Survex can link to it, that should get you the rest of the way there. I lost patience and gave up.

My recommendation is to consider OS X an unsupported platform for these tools; install a Debian or Ubuntu GNU/Linux virtual machine, and simply `sudo apt-get install survex therion` to have them working beautifully as their developers intend.

If the developers considered OS X to be a firstclass supported platform, they'd at least make them easily installed via homebrew, macports, etc., or provide a compiled executable package so that users don't need to be software developers as well. Of course, you practically need to be a software developer to fully master Therion anyway, so perhaps this is a suitable "nerd gate" for entry. Godspeed!

Re: Therion

PostPosted: Feb 25, 2014 4:37 pm
by Martin Sluka
driggs wrote:My recommendation is to consider OS X an unsupported platform for these tools; install a Debian or Ubuntu GNU/Linux virtual machine, and simply `sudo apt-get install survex therion` to have them working beautifully as their developers intend.


You are right, but if you install all dependencies one time, it will really work next time as you wrote:

Code: Select all
make config-macosx
make
sudo make install  # (optional)


Only ThBook is better to compile separately but first do "make" in Sample directory. You will have ThBook withs samples addendum then.