Skip to content

Instantly share code, notes, and snippets.

@spmls
spmls / Driftwood Bay g.s. plots
Last active November 23, 2016 22:03
Plotting g.s. stuff for multiple sand layers along the Cabin Flat 1xx transect
{
"cells": [
{
"cell_type": "code",
"execution_count": 24,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@spmls
spmls / Sedanka Profile, move shoreline
Created April 9, 2015 17:50
Moving the shoreline inland to represent paleo-shoreline positions
{"cells": [{"outputs": [], "source": "import numpy as np\nimport matplotlib.pyplot as plt\nfrom pydelft import grd, dep\nimport mpld3\n% matplotlib inline", "cell_type": "code", "metadata": {"trusted": true, "collapsed": true}, "execution_count": 1}, {"source": "## load grids and depths", "cell_type": "markdown", "metadata": {}}, {"outputs": [], "source": "rtk_grid = grd.grd()\nsimple_grid = grd.grd()\n\nrtk_depth = dep.dep()\nsimple_depth = dep.dep()\n\nrtk_grid.read_grd('rtk_gps.grd')\nrtk_depth.read_dep('rtk_gps.dep')\nsimple_grid.read_grd('simple.grd')\nsimple_depth.read_dep('simple.dep')\n\nx = rtk_grid.x[1,:-1]\nrtk_z = -rtk_depth.depth.flatten()\nsimple_z = -simple_depth.depth.flatten()", "cell_type": "code", "metadata": {"trusted": true, "collapsed": true}, "execution_count": 2}, {"outputs": [{"output_type": "execute_result", "data": {"text/html": "\n\n<style>\n\n</style>\n\n<div id=\"fig_el76881246388248986866944\"></div>\n<script>\nfunction mpld3_load_lib(url, callback){\n var s = document.createEl
{
"metadata": {
"name": "",
"signature": "sha256:45afe552de371bf0fd539504a4eac4f65f0cb43e749444c6719fa0da2bf15ae3"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@spmls
spmls / Riemann from daisuke boundary conditions
Last active December 16, 2022 10:54
Delft FLOW - Creating Riemann boundary time series from output of another model
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@spmls
spmls / LEG_stats_week3powerrankings2014
Last active August 29, 2015 14:06
A first go at plotting up the LEG stats from an excel sheet
{
"metadata": {
"name": "",
"signature": "sha256:b4c336139f8b62daddad720724a5e1132afeaf1b959a4d861a4dd6f25929bc59"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@spmls
spmls / whosapp_CheckClientList
Created September 15, 2014 07:45
Cross-check regular client checklist against petsitclick schedule
{
"metadata": {
"name": "",
"signature": "sha256:f471d66374301d86458589629ae9a72e9cddad6685c250a1bc7e37bbd8c76c65"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@spmls
spmls / Iselle_Hawaii
Last active August 29, 2015 14:05
plotting NDBC and NOS wave and waterlevel data in python, examples for Hawaii
This file has been truncated, but you can view the full file.
{
"metadata": {
"name": "Working with NDBC buoy data"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@spmls
spmls / Fire Island DGPS vertical precision
Last active August 29, 2015 14:01
Fire Island DGPS vertical precision
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "plot AASZ vs SLAB"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{