This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask, send_file, send_from_directory | |
from watchdog.observers import Observer | |
from watchdog.events import FileSystemEventHandler | |
import os | |
NBCONVERT_PATH = '../nbconvert/nbconvert.py' | |
TARGET_IPYNB = 'presentation.ipynb' | |
TARGET_HTML = 'presentation_slides.html' | |
def nbconvert(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
import argparse | |
import cv2 | |
import numpy as np | |
def calc_disparity(left_image, right_image): | |
window_size = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>PyQtLeaflet</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" /> | |
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css" /> | |
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script> | |
<style> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdal_translate -of GMT grassdata/nc_basic_spm_grass7/PERMANENT/cellhd/elevation elevation.gmt | |
gdalwarp -overwrite elevation.gmt out_elevation.gmt -t_srs EPSG:4326 | |
gmt grdgradient out_elevation.gmt -Ne0.8 -A100 -fg -Gus_i.nc | |
gmt makecpt -Chaxby -T50/160/10 -Z > topo.cpt | |
gmt grdimage out_elevation.gmt -JM6i -P -Ba -Ctopo.cpt -V -K -Ius_i.nc >> GMT_tut_12.ps | |
gmt grdcontour out_elevation.gmt -JM6i -O -BWSne -C20 -A20 >> GMT_tut_12.ps | |
gmt psscale -DjTC+w5i/0.25i+h+o0/-1i -Rout_elevation.gmt -JM6i -Ctopo.cpt -B+tcontinuous -I0.5 -O -Ba1000:Elevation:/:m: >> GMT_tut_12.ps |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer