Git Product home page Git Product logo

ess412_introtoseismo's Introduction

Introduction to Seismology Jupyter Notebooks

These are the Jupyter notebooks for the UW ESS 412/512 winter quarter introduction to seismology class.

These are intended to be run with Python 3.x where x can be 4 or 5. These should also be accessible via Microsoft Azure.

Prerequisites

These are Python3.5 notebooks. They will subsequently require

  1. Python version 3.5. Version 3.6 may also work. The 2.x series is being deprecated so I'm trying to avoid it.
  2. ObsPy.
  3. [Jupyter] notebooks.
  4. Git.
  5. basemap

Optional - I strongly recommend installing Python with Anaconda. In this instance you'll end up with Python3.6 and have to add

conda config --add channels conda-forge

Alternatively, you can use these notebooks in a cloud environment via Microsoft Azure. However, this will require that you register with Microsoft.

Staying Up-To-Date

This repository will be populated as the class unfolds.

If working at a terminal

To stay up to date change your working directory to where the git repository is downloaded, e.g.,

cd /path/to/ess412_introToSeismo

Then type

git pull

This should pull the latest notebooks and you'll up-to-date.

If working on Azure

To stay up to date on Azure open a "Terminal." Then type

cd library
git pull

This should pull the latest notebooks and you'll be up-to-date.

Git is sassing you

You probably modified a file without changing the name/copying it to your local directory. In git's complaints will likely be offending file names. Let's say nisqually.ipynb is causing issues. You can do a few things here.

(1) Change the offending file names

mv niqually.ipynb to nisqually_myName.ipynb

(2) Commit your change. This may ultimately lead to a merge conflict but git can be pretty clever so give it a try.

git add nisqually.ipynb
git commit -m "I've modified this file while doing my homework.  Maybe I'll follow the directions next time."

Usage

Here are some ideas on usage for those working at a terminal and those working on Azure.

If working at a terminal

In this option locate the notebook in the git repo structure. Change directories to where you are doing your work, e.g.,

cd /path/to/my/seismology/homework

Now copy it to your working directory, e.g.,

cp /path/to/ess412_introToSeismo/directory/notebook.ipynb ./notebook_myName.ipynb

Renaming the file will prevent git from destroying your file during a git pull phase.

Then run the notebook

/path/to/anaconda3/bin/jupyter notebook

In a web-browser you will see notebook_myName.ipynb. Select it and click "Run".

If working on Azure

In this option locate the appropriate notebook in the library structure. For example, let's call it notebook/notebook.ipynb. Then rename notebook.ipynb by right-clicking and entering notebook_myName.ipynb. This will prevent git from destroying your work during a git pull phase.

Now select the renamed notebook and type "Run".

Directories

This is an overview directories and files contained within are described.

  1. introToPython contains a very simple introToPython.ipynb notebook which provides a very brief overview of Python.
  2. nisqually contains nisqually.ipynb - This is the Nisqually 2001 event recorded at station KEV. It is an introduction to waveform interpretation and major seismic signals that we'll discuss in the class.
  3. reflectionCoeffs contains reflectionAndTransmissionCoefficients.ipynb and does simple solid-solid interface reflection coefficient calculations.

ess412_introtoseismo's People

Contributors

bakerb845 avatar

Watchers

James Cloos 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.