Therion Length Calculation Question

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

Moderator: Moderators

Therion Length Calculation Question

Postby caver.adam » Dec 2, 2014 11:19 pm

I'm working on getting data converted from topoDroid to Therion and ran into a problem when combining more than one survey on the same output map. The map is showing that the total length of the cave is the length of the first survey. Anyone encountered this before and know how to solve?

I can provide more info on request but here's the main code. I'm getting the distance for survey bbme1.th but nothing for the other.

.th file:
Code: Select all
survey BigBat -title "Big Bat Cave"

  input 2014_10_26_bbme1/bbme1.th
  input 2014_10_26_bbme1/bbme2.th
 
  equate M1.10@bbme1 M2.10@bbme2
 
endsurvey


.thcnfg file:
Code: Select all
encoding  utf-8
source bigbat.th

layout basics
  units imperial
  scale 1 50
endlayout

layout colors
  #color map-fg [98 87 40]
  #color map-bg [80 80 80]
  #debug station-names
  transparency on
  opacity 60
endlayout

export map -projection plan -o BigBat.pdf \
  -layout colors -layout basics
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 Length Calculation Question

Postby KeyserSoze » Dec 12, 2014 1:03 am

I thought there was something fishy going on with that last trip. The passage from the Junction Box to Room 1 has to be longer than 400 feet. It's more like 1200 feet.
This signature is really funny
User avatar
KeyserSoze
NSS Hall Of Fame Poster
 
Posts: 227
Joined: Nov 6, 2007 2:18 pm
Location: Louisville, Kentucky
NSS #: 61069
Primary Grotto Affiliation: Louisville Grotto
  

Re: Therion Length Calculation Question

Postby caver.adam » Dec 12, 2014 8:55 am

Actually, that survey is all one sketch and one .th file. Our shot to shot distance was 455 feet. Centerline distance was 415 feet.

This is where I combine your survey and my survey.
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 Length Calculation Question

Postby caver.adam » Dec 12, 2014 8:58 am

On a side note - I was told that it's a 300 foot belly crawl. That would correspond with the survey. 300 feet of belly crawl and 100+ feet of walking.
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 Length Calculation Question

Postby caver.adam » Jan 27, 2015 11:20 am

Ok, I didn't find an official answer to my question, but I did find a work-around for anyone looking into the same issue.

Surveys are nested in Therion and it makes some interesting behavior. Avoid nested survey tags when possible.

My originals looked something like:

Old Main.th
Code: Select all
survey BigBat -title "Big Bat Cave"

  input 2014_10_26_bbme1/bbme1.th
  input 2014_10_26_bbme1/bbme2.th
 
  equate M1.10@bbme1 M2.10@bbme2
 
endsurvey


Old bbme1.th
Code: Select all
survey bbme1 -title "bbme1"

centerline
     .... data goes here ....
end centerline
 
endsurvey


I changed my input files so they did NOT have "survey" tags in them. I just commented them out with #survey and #endsurvey. Then my input files only go from centerline .... endcenterline. This created another problem where all of the points were nested inside my main file, so I had to update my equate function also.

The new code looked like:

New Main.th
Code: Select all
survey BigBat -title "Big Bat Cave"

  input 2014_10_26_bbme1/bbme1.th
  input 2014_10_26_bbme1/bbme2.th
 
  equate M1.10 M2.10
 
endsurvey


New bbme1.th
Code: Select all
#survey bbme1 -title "bbme1"

centerline
     .... data goes here ....
end centerline
 
#endsurvey
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 Length Calculation Question

Postby Martin Sluka » Feb 5, 2015 3:49 pm

Adam, may you send my your data if possible? mailto:martinsluka@mac.com
I'll check it, it is not normal behaviour.

m.s.
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 Length Calculation Question

Postby caver.adam » Feb 5, 2015 9:38 pm

Ok. I'll try to get it out Sunday if I can. Between business travel and grad school it will take me some time.

I'm much farther into my project now but I think it will all still make sense.
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 Length Calculation Question

Postby Martin Sluka » Feb 6, 2015 3:40 am

caver.adam wrote:I'm much farther into my project now but I think it will all still make sense.


I'm sorry if I'll write something which you know already. Survey on the lovest level is the basic structure unit of data in Therion. It could be something as log of one survey trip including surveying data. It usually include the definition of map of particular part of cave surveyed which is used as control when drawing particular scraps. Therion is able to generate map without a map definition, but in that case it looks for all available data in surveys structure and the result is sometimes unexpected. So very good rule is to define map(s) and "select" particular map in .thconfig file. Maps could be defined on base of surveys or on base of scraps.

Very important: Structure of maps is independent of structure of surveys!!! You may define as many different maps as you want and select relevant map in export definition (.thconfig file).

Surveys in higher levels usually define parts of cave, bigger unit of cave system, caves from an area, caves from a mountain, caves of a state, ....., caves on the Earth. :grin: In such case you should use the "path" in name of survey or scrap: xxx@aaa.bbb.ccc.ddd.eee Something as an email address.

But map may be defined by two (or several) scraps from different surveys or cave system if necessary too when you are looking for connection for example.
Last edited by Martin Sluka on Feb 7, 2015 3:43 am, edited 1 time in total.
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 Length Calculation Question

Postby caver.adam » Feb 6, 2015 9:15 am

You may have described my problem. Sounds very likely. I won't be home for a couple days to try it.

Thanks!
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 Length Calculation Question

Postby caver.adam » Apr 3, 2015 8:27 am

That was what I needed! Seems to work now. Just took me a long time to have a morning to sit down and work on it.

The layout of the main.th

Code: Select all
encoding  utf-8
survey Main -title "My Survey"

  ####################################
  # Input centerline data
  ####################################
  input inputs/firstsurvey.th
  input inputs/secondsurvey.th

  ####################################
  # Connect centerlines
  # equate the new start to it's place.
  # All points in centerline must be
  # connected or ignored here.
  ####################################
  equate A_1@firstsurvey A_2@secondsurvey

endsurvey


Layout of firstsurvey.th

Code: Select all
encoding  utf-8
survey firstsurvey

#input the th2 sketches
input firstsurveyfirstsketch.th2
input firstsurveysecondsketch.th2

#add the th2 sketches for this survey to the map
map firstsurveymap
  firstsurvey_scrap1
  firstsurvey_scrap2
endmap

centerline
  date 2015.4.3
  team "Adam Sampson" notes

  declination -5.1 degrees
  units tape meters
  units compass degrees
  units clino degrees
 
  data normal  from  to  length  compass  clino
  # add prefixes to data points (my digital survey numbers from 0, 1, 2, etc.
  # I add a survey prefix here and in the .th2)
  station-names A_ []
  # Tie the Survey to a GPS point at the entrance.
  cs long-lat
  fix 0 -86:10.300 37:40.250 200
  station 0 "My Entrance" entrance
    0 1 10 315 -82.5 #numbers not included in this example
    #...
    8 9 4 340 -5.8

endcenterline

endsurvey
User avatar
caver.adam
NSS Hall Of Fame Poster
 
Posts: 345
Joined: Feb 8, 2012 12:26 pm
Primary Grotto Affiliation: Louisville Grotto
  


Return to Survey and Cartography Forum

Who is online

Users browsing this forum: No registered users