Therion

Techniques, equipment and issues. Also visit the NSS Survey & Cartography Section.

Moderator: Moderators

Re: Therion

Postby Martin Sluka » Sep 25, 2013 2:27 am

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
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 402
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: Therion

Postby Martin Sluka » Dec 24, 2013 7:08 am

New version 5.3.12 available as usual.
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 402
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: Therion

Postby caver.adam » Jan 15, 2014 9:06 am

Just learning Therion. Thanks for keeping updates going here.
User avatar
caver.adam
NSS Hall Of Fame Poster
 
Posts: 345
Joined: Feb 8, 2012 12:26 pm
Primary Grotto Affiliation: Louisville Grotto
  

Re: Therion

Postby Martin Sluka » Jan 15, 2014 9:59 am

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!
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 402
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: Therion

Postby Martin Sluka » Jan 22, 2014 5:47 pm

User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 402
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: Therion

Postby caver.adam » Jan 29, 2014 7:28 pm

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.
User avatar
caver.adam
NSS Hall Of Fame Poster
 
Posts: 345
Joined: Feb 8, 2012 12:26 pm
Primary Grotto Affiliation: Louisville Grotto
  

Re: Therion

Postby Martin Sluka » Jan 31, 2014 4:46 am

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
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 402
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: Therion

Postby caver.adam » Feb 1, 2014 10:36 am

Ah!

I'm using windows. Couldn't figure out where to find the files...until now!
User avatar
caver.adam
NSS Hall Of Fame Poster
 
Posts: 345
Joined: Feb 8, 2012 12:26 pm
Primary Grotto Affiliation: Louisville Grotto
  

Re: Therion

Postby Martin Sluka » Feb 2, 2014 5:19 am

download the source code, decompress it and there is complete folder structure. Or just copy it from my message.
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 402
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: Therion

Postby Martin Sluka » Feb 23, 2014 4:16 am

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!!!
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 402
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: Therion

Postby heinrich » Feb 23, 2014 5:06 pm

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
heinrich
Infrequent Poster
 
Posts: 2
Joined: Feb 23, 2014 4:40 pm
  

Re: Therion

Postby Martin Sluka » Feb 24, 2014 5:37 am

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
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 402
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

Re: Therion

Postby heinrich » Feb 24, 2014 11:46 am

Hi Martin,
this was fast!
I am going to send a log-file

Thank you!
Heinrich
heinrich
Infrequent Poster
 
Posts: 2
Joined: Feb 23, 2014 4:40 pm
  

Re: Therion

Postby driggs » Feb 25, 2014 11:53 am

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!
User avatar
driggs
NSS Hall Of Fame Poster
 
Posts: 495
Joined: Sep 12, 2005 9:40 pm
Location: State of Jefferson
Name: David A. Riggs
NSS #: 56189
Primary Grotto Affiliation: Monongahela
  

Re: Therion

Postby Martin Sluka » Feb 25, 2014 4:37 pm

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.
User avatar
Martin Sluka
NSS Hall Of Fame Poster
 
Posts: 402
Joined: Mar 17, 2006 11:28 am
Location: Prague, Czech Republic
Name: Martin Sluka
NSS #: 29010
  

PreviousNext

Return to Survey and Cartography Forum

Who is online

Users browsing this forum: No registered users

cron