Skip to content

Instantly share code, notes, and snippets.

View McCulloughRT's full-sized avatar

Ryan McCullough McCulloughRT

View GitHub Profile
import numpy as np
import json
import os
def bbox(coords):
sep = zip(*coords)
Xmax = max(sep[0])
Xmin = min(sep[0])
Ymax = max(sep[1])
Ymin = min(sep[1])