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/bin/python | |
import argparse | |
import os | |
import shutil | |
import subprocess | |
exifcmd = "/usr/local/bin/exiftool" | |
def main(args): |
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
nc <- sf::read_sf(system.file("shape/nc.shp", package="sf")) | |
bb <- sf::st_bbox(nc) | |
bb <- bb + c(-2, -2, 2, 2) | |
topo <- marmap::as.raster(marmap::getNOAA.bathy(bb["xmax"], bb["xmin"], bb["ymax"], bb["ymin"], | |
resolution = 2)) | |
triangles <- sf::st_cast(sfdct::ct_triangulate(nc, a = .005)) | |
elevate_triangles <- function(g, r) { | |
## assuming geometry of POLYGON |