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
#!/usr/bin/env python3 | |
import grass.script as gs | |
def parse_node(line): | |
node, n_lines, xyz, y, z = line.split(",") | |
_, cat = node.split("=") | |
cat = int(cat.strip()) | |
_, n_lines = n_lines.split("=") |
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
import wx | |
from wxasync import AsyncBind, WxAsyncApp, StartCoroutine | |
import asyncio | |
from asyncio.events import get_event_loop | |
import websockets | |
import logging | |
import sys | |
import json |
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
# Ruixue Wang | |
def run_contour(scanned_elev,env,**kwargs): | |
gscript.run_command('r.contour',input=scanned_elev,output='Ruixue_contour',step=2,env=env) | |
# Rohith | |
def run_mvwatershed(scanned_elev, env, **kwargs): | |
gscript.run_command('r.watershed', elevation=scanned_elev, accumulation='flow_accum', | |
basin='watersheds', threshold=800, env=env) | |
gscript.run_command('r.slope.aspect', elevation=scanned_elev, slope='slope', env=env) | |
gscript.run_command('r.stats.zonal', base='watersheds', cover='slope', method='average', |
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
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Sep 27 11:13:02 2018 | |
@author: anna | |
""" | |
import os | |
import sys | |
import atexit | |
import grass.script as gs |
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 -*- | |
""" | |
Created on Tue Mar 28 17:32:38 2017 | |
@author: tangible | |
""" | |
import os | |
import shutil | |
import glob |
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
dummy file just to have nice name on gist |
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
r.lake elevation=JR_topobathy@JR_2014 water_level=0 lake=sound_water_level_0 coordinates=912401.339286,250065.561224 --o | |
r.lake elevation=JR_topobathy@JR_2014 water_level=0.3048 lake=sound_water_level_1 coordinates=912401.339286,250065.561224 --o | |
r.lake elevation=JR_topobathy@JR_2014 water_level=0.6096 lake=sound_water_level_2 coordinates=912401.339286,250065.561224 --o | |
r.lake elevation=JR_topobathy@JR_2014 water_level=0.9144 lake=sound_water_level_3 coordinates=912401.339286,250065.561224 --o | |
r.lake elevation=JR_topobathy@JR_2014 water_level=1.2192 lake=sound_water_level_4 coordinates=912401.339286,250065.561224 --o | |
r.lake elevation=JR_topobathy@JR_2014 water_level=1.524 lake=sound_water_level_5 coordinates=912401.339286,250065.561224 --o | |
r.lake elevation=JR_topobathy@JR_2014 water_level=1.8288 lake=sound_water_level_6 coordinates=912401.339286,250065.561224 --o | |
r.lake elevation=JR_topobathy@JR_2014 water_level=1.8288 lake=sound_water_level_7 coordinates=912401.339286,250065.561224 --o | |
r.lake elevation=JR_to |
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
# Images to video | |
avconv -r 13 -i compare_%03d.png -c:v mpeg4 -b:v 25000k compare.mp4 | |
# Horizontally append images in loop | |
for I in `seq -f "%03g" 1 390` | |
do | |
convert +append a_$I.png b_$I.png ab_$I.png | |
done |