Giter VIP home page Giter VIP logo

gplateshelpers's Introduction

GPlatesHelpers

Quick scripts to make the GPlates software less annoying to use

Adds linebreaks to .rot files to help readability, and removes them again so the software doesn't complain

Line Break Adder

linebreakadder.exe [input .rot file] [output .rot file] or linebreakadder.py [input .rot file] [output .rot file] is faster but you need python installed.

Adds linebreaks when the first number is different, e.g.:

[...]
100 950.0   60.4016  168.15  -17.7634  000 !
100 1000.0   90.0    0.0    0.0  000 ! Craton A Start

200  0.0   90.0    0.0    0.0  000 ! Craton B End
200  1.0   37.4047  137.7895  -78.749  000 ! Drift Correction
200 650.0   37.4047  137.7895  -78.749  000 !
200 700.0   51.9342  153.8847  -71.8022  000 !
200 750.0   62.2189  169.5583  -69.5091  000 !
200 800.0   63.134  170.375  -61.5644  000 ! Craton B (Start moving independantly)
200 800.0   90.0    0.0    0.0  100 ! Craton B (End Fol-A)
200 1000.0   90.0    0.0    0.0  100 ! Craton B Start (fol-A)

201  0.0   90.0    0.0    0.0  000 ! Ocean B1 End
201  1.0   81.6214 -144.687  -71.4834  000 ! Drift Correction
[...]

Line Break Remover

linebreakremover.exe [input .rot file] [output .rot file] or linebreakremover.py [input .rot file] [output .rot file] is faster but you need python installed.

Removes all two or more linebreaks so the GPlates software doesn't complain.

gplateshelpers's People

Contributors

jwansek avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.