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
Image.MAX_IMAGE_PIXELS=10000000000 |
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 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Oct 3 10:46:28 2019 | |
@author: shino | |
""" | |
from shapely import wkt | |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Thu Oct 3 10:46:28 2019 | |
@author: shino | |
""" | |
from shapely import wkt | |
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
gridopt = gdal.GridOptions(format='GTiff', algorithm='linear', width=1000, | |
height=1000) | |
dtm_data = gdal.Grid('tmp_point.tif', 'tmp_point.vrt', options=gridopt) |
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
#!/bin/sh | |
#$ -c#!/bin/sh | |
#$ -cwd | |
#$ -l q_node=1 | |
#$ -l h_rt=24:00:00 | |
. /etc/profile.d/modules.sh |
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
for file in `\find . -name '*.txt'`; do | |
echo $file | |
echo ${file##*/} | |
cut -f1,2,3,4 -d";" $file > ../train_pointtxt/${file##*/} | |
cut -f5- -d";" $file > ../train_wavetxt/${file##*/} | |
done |
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
for file in `\find . -name '*.txt'`; do | |
echo $file | |
tonnage=${file##*/} | |
echo ${tonnage/.txt/.las} | |
/path/to/LAStools-master/bin/txt2las -i $file -o ../train_las/${tonnage/.txt/.las} -parse xyzc | |
done |
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
#!/bin/sh | |
#$ -cwd | |
#$ -l q_node=1 | |
#$ -l h_rt=24:00:00 | |
. /etc/profile.d/modules.sh |
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
def loss(labels, logits): | |
weights = tf.where(labels == 0, 1, 1) | |
weights = tf.where(labels == 1, 1, weights) | |
weights = tf.where(labels == 2, 2, weights) | |
weights = tf.where(labels == 3, 20, weights) | |
weights = tf.where(labels == 4, 20, weights) | |
weights = tf.where(labels == 5, 20, weights) |
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 -*- | |
""" | |
@author: shnhrtkyk | |
""" | |
path = "path/to/bin" | |
with open(path, mode='rb') as fin: | |
content = fin.read() | |
# print(content) |