GithubHelp home page GithubHelp logo

lpk-py / tomocode Goto Github PK

View Code? Open in Web Editor NEW

This project forked from marcelobianchi/tomocode

0.0 1.0 0.0 677 KB

Telesseismic Tomography Code initially written by Andrey Jakovlev

License: GNU General Public License v2.0

Makefile 4.99% Fortran 81.98% Shell 13.03%

tomocode's Introduction

tomocode

Telesseismic Tomography Code initially written by Andrey Jakovlev.

This code was adapted by Marcelo Bianchi to run on Linux environment and modified by Sofia Kufner.

The files on the SHELL folder are helpers to use the code on the Linux environment. Specially the tomo.bshm file. This file implements a bash shell function called tomo that allows you to more easily uses the code. To use it follow those steps:

  1. First of all edit this file (line 27) and set the variable "tomobase" to the folder where you installed the code. In my case:

    ~ Begin tomo.bshm segment ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ do not copy this line ~

    Setup

    tomobase="/home/mbianchi/tomocode/" [ ! -d "${tomobase}" ] && echo "tomo.bshm: Invalid folder '${tomobase}', please edit tomo.bshm and set the tomoroot folder." && return 1 export PATH=${tomobase}/SHELL:$PATH

    ~ end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ do not copy this line ~

  2. Install it. I have a library set of shell functions. This library is located into the folder pointed by the BSHM variable. Please set this in your ".bashrc". My .bashrc file has the following lines to set this:

    ~ Begin .bashrc segment ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ do not copy this line ~

    Tomo

    export BSHM="${HOME}/bin/BSHM" export GMTDATA="${HOME}/bin/gmt.mapa/" mkdir -p "$BSHM" "$GMTDATA" ~ end ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ do not copy this line ~

When you have this working, open a new terminal, go to the folder tomocode/SHELL/ and run:

% bash tomo.bshm install

This will make a link from $BSHM/tomo.bshm to tomocode/SHELL/tomo.bshm

  1. In your shell load the module.

    % source $BSHM/tomo.bshm

  2. Now you can use the function "tomo". Just type in "tomo" for getting a help notice.

Bianchi ~ 24-01-2014

tomocode's People

Contributors

marcelobianchi 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.