BritishGeologicalSurvey / stratigraph

Network stratigraphy through text mining
GNU Lesser General Public License v3.0
4 stars 0 forks source link

Age ranking for strats in graphs #19

Open metazool opened 3 years ago

metazool commented 3 years ago

Based on minimum age

Can we add this ranking programmatically to the dotfile output based on the Linked Data?

Predominant age may be blank or ? - there are lots of nulls

rachelheaven commented 3 years ago

Predominant age ? have been removed now, but there are still lots of nulls

metazool commented 3 years ago

I must have jotted this issue down during a team discussion and now can't remember what was intended by age ranking - to effect node placement based on relative ages? (as we were originally trying to do with bokeh during the prototype)

https://graphviz.org/pdf/dotguide.pdf - casting through the manual for the dot utility for node placement (p. 15)

The rank of a subgraph may be set to same, min, source, max or sink. A value same causes all the nodes in the subgraph to occur on the same rank. If set to min, all the nodes in the subgraph are guaranteed to be on a rank at least as small as any other node in the layout .This can be made strict by setting rank=source"

So in a graph covering a wide time range we may be able to group collections of nodes together in the graph by chronological sub-division - would this gain acceptance? it looks worth experimenting with.

rachelheaven commented 3 years ago

Yes, it was about placement of nodes in the Y axis on the page based on their age. If we could size the nodes then we can use the age range in Ma - though could look very odd. Otherwise we would need a singular age in Ma rather than an age range. The best candidate to use for that is the median age in Ma of the predominant geochron age, but predominant age is missing for many records, so we'd have to place the nodes based on the midpoint of the age range. You'd probably need a logarithmic scale too. Alternatively we can rank them vertically based on geochron era, which I think would be much simpler !

"group collections of nodes together in the graph by chronological sub-division" yes, this is what I envisaged it could do, so worth experimenting! Perhaps also experiment with sizing based on age range, shape of nodes based on stratigraphic rank.