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
from dataclasses import dataclass | |
import re | |
from typing import Generator | |
from lxml import objectify | |
import matplotlib as mpl | |
import matplotlib.pyplot as plt | |
from matplotlib.collections import PatchCollection | |
import numpy as np |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
import argparse | |
import glob | |
import numpy as np | |
import scipy.spatial | |
def trapezoidal_area(xyz): | |
"""Calculate volume under a surface defined by irregularly spaced points | |
using delaunay triangulation. "x,y,z" is a <numpoints x 3> shaped ndarray.""" | |
grid = scipy.spatial.Delaunay(xyz[:,:2]) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.