This file contains hidden or 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 sys | |
# Writing STL mesh to 3dfaces as DXF using dxfwrite | |
# Dirty script thus only for triangles | |
from dxfwrite import DXFEngine as dxf | |
drawing = dxf.drawing('test.dxf') | |
for line in sys.stdin.readlines(): | |
if line.find(" facet") == 0: |
This file contains hidden or 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/sh | |
# works with Taudem 5.0.6 | |
# Pit fill | |
mpiexec -n 8 pitremove -z dtm.tif -fel dtmfel.tif | |
# Flow directions | |
mpiexec -n 8 d8flowdir -p dtmp.tif -sd8 dtmsd8.tif -fel dtmfel.tif | |
mpiexec -n 8 dinfflowdir -ang dtmang.tif -slp dtmslp.tif -fel dtmfel.tif |
This file contains hidden or 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
# Based on https://github.com/Hydrata/ChennaiFloodModel and adapted to Anuga examples for further automisation | |
# Anuga imports | |
from math import sin, pi, exp | |
from osgeo import gdal, osr | |
import csv | |
import anuga, os, sys, numpy, urllib | |
import anuga.utilities.quantity_setting_functions as qs | |
import anuga.utilities.log as log | |
from anuga.shallow_water.forcing import Rainfall |
This file contains hidden or 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
1.Follow instruction as per https://wiki.lineageos.org/devices/river/build to setup the environment including repo, caching | |
2.When initializing the repo use branch 17.1 | |
repo init -u https://github.com/LineageOS/android.git -b lineage-17.1 | |
repo sync | |
3.Clone specific repos for enabling device support | |
git clone https://github.com/GS290-dev/android_device_gigaset_GX290-unified -b lineage-17.1 device/gigaset/GX290-unified | |
git clone https://github.com/GS290-dev/proprietary_vendor_gigaset/ -b lineage-17.1 vendor/gigaset | |
git clone https://github.com/GS290-dev/android_device_gigaset_mt6763-common -b lineage-17.1 device/gigaset/mt6763-common |
This file contains hidden or 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 -*- | |
""" | |
@author: Sebastian Schoeller | |
Source: | |
https://github.com/Deltares/pyflwdir/issues/15 | |
1. Create regions from the landuse map, using e.g. scipy.ndimage.label. This returns a map with unique IDs for connected regions with the same landuse. | |
2. Find the most downstream "outflow pixel" of each region using pyflwdir.FlwdirRaster.inflow_idxs Note: should still be added to the API Reference in the docs. This returns a list with linear indices of outflow pixels. | |
3. Derive subbasins using pyflwdir.FlwdirRaster.basins based on the indices of the outflow pixels from step 2, supplied using the idxs_out option. This returns a map with unique IDs for each basin. |
This file contains hidden or 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
Recipe for Eos 0.23.9-r: | |
repo init -u https://gitlab.e.foundation/e/os/releases.git -b refs/tags/v0.23.9-r | |
mkdir .repo/local_manifests | |
vi .repo/local_manifests/eos.xml | |
<?xml version="1.0" encoding="UTF-8"?> | |
<manifest> | |
<remote name="fdroid" fetch="https://gitlab.com/fdroid/" /> | |
<remote name="sfX" fetch="https://github.com/sfX-Android/" /> |
This file contains hidden or 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
; Schraffuren analog zu https://www.rug-dach.de/download/sammeldateien.html | |
*FP1_1, Ortbeton - bewehrt | |
45, 0,0, 0,203.2, 101.6, -101.6 | |
45, 179.605,35.921, 0,203.2 | |
*FP1_10, Mauerwerk - ohne Dämmeigenschaften | |
45, 0,0, 0,152.4 | |
45, 71.842,0, 0,152.4 |
This file contains hidden or 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 warnings | |
warnings.filterwarnings("ignore") | |
from wetterdienst.provider.dwd.observation import DwdObservationRequest, \ | |
DwdObservationPeriod, DwdObservationResolution, DwdObservationParameter, DwdObservationDataset | |
# # all | |
# print("All available parameters") | |
# print( | |
# DwdObservationRequest.discover() |
This file contains hidden or 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 traceback | |
from pyrx_imp import Rx, Ge, Gi, Db, Ap, Ed, Cv | |
def PyRxCmd_pydebug() -> None: | |
import PyRxDebug | |
PyRxDebug.startListener() | |
drawProps = {'colorIndex': 255,'radius': 0.2} | |
def getIds(vAlignment): |