lem ファイルを GeoTIFF に変換するスクリプトです。
- lem ファイル仕様
- https://www.gsi.go.jp/MAP/CD-ROM/dem5m/doc/info5m1.htm
- ただし、データ間隔によりレコード数等は説明と合致しないことがあります。
| Types: deb deb-src | |
| #URIs: http://jp.archive.ubuntu.com/ubuntu | |
| #URIs: https://ftp.jaist.ac.jp/pub/Linux/ubuntu | |
| URIs: https://ftp.udx.icscoe.jp/Linux/ubuntu | |
| Suites: noble noble-updates noble-backports | |
| Components: main restricted universe multiverse | |
| Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg | |
| Types: deb deb-src | |
| URIs: https://security.ubuntu.com/ubuntu |
| [Unit] | |
| Description=Redmine Puma Server | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=foo | |
| WorkingDirectory=/home/foo/redmine | |
| Environment=RAILS_RELATIVE_URL_ROOT=/redmine | |
| ExecStart=/usr/bin/bundle exec puma -b tcp://127.0.0.1:3000 -e production -w 3 --preload |
| [Unit] | |
| Description=Redmine Unicorn Server | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| User=foo | |
| WorkingDirectory=/home/foo/redmine | |
| ExecStart=/usr/bin/bundle exec unicorn_rails --listen=127.0.0.1:3000 --env=production --path=/redmine | |
| Restart=always |
| on run argv | |
| do shell script "~/bin/run-usdview" | |
| end run | |
| on open objects | |
| do shell script "~/bin/run-usdview " & quoted form of POSIX path of (item 1 of objects) | |
| end open |
| @echo off | |
| pushd %~dp0 | |
| rem git fetch origin | |
| rem git merge FETCH_HEAD | |
| rem pause | |
| cd src | |
| call .\msvc2022.bat x64 |
| import bpy | |
| context = bpy.context | |
| base_ob = bpy.data.objects['Suzanne1'] # ソフトボディを設定したメッシュ | |
| target_ob = bpy.data.objects['Suzanne2'] # base_obをリンク複製してモディファイアはすべて消したもの | |
| target_ob.vertex_groups.clear() | |
| vg_names = [] | |
| num_vertices = len(target_ob.data.vertices) | |
| for i, v in enumerate(target_ob.data.vertices): |
| func add(_ x: Int) -> ((Int) -> Int) { | |
| return { (_ y: Int) -> Int in | |
| return x + y | |
| } | |
| } | |
| add(1)(2) == 3 |
lem ファイルを GeoTIFF に変換するスクリプトです。
| import gradio as gr | |
| import numpy as np | |
| def func(img, n): | |
| R = img[:,:,0] | |
| G = img[:,:,1] | |
| B = img[:,:,2] | |
| R = np.where(R <= n, 0, R) |
| import bpy | |
| for m in bpy.data.materials: | |
| if not m.use_nodes: | |
| continue | |
| #print(m) | |
| nodes = m.node_tree.nodes | |
| #print(nodes) | |
| img_nodes = [n for n in nodes if n.type == "TEX_IMAGE"] | |
| #print(nodes[:]) |