Last active
December 20, 2015 06:19
-
-
Save dbuscombe-usgs/6085379 to your computer and use it in GitHub Desktop.
Alpha shape
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
def get_alpha_shape(infile,radius): | |
command = "%s -A -aa %s -r -m10000000 -oN -oFpoints < %s" % (hull_path, str(radius), infile) | |
print >> sys.stderr, "Running command: %s" % command | |
retcode = subprocess.call(command, shell=True) | |
results_file = open("points-alf") | |
results_file.next() | |
results_indices = [[int(i) for i in line.rstrip().split()] for line in results_file] | |
results_file.close() | |
return results_indices |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment