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
import numpy as np | |
from scipy.interpolate import RectBivariateSpline as Spline | |
import pygeodesy as geo | |
from pygeodesy.ellipsoidalVincenty import LatLon | |
class Geoid12B(): #NAD 83 Ellipsoid | |
# https://www.ngs.noaa.gov/GEOID/GEOID12B/GEOID12B_CONUS.shtml | |
# Download a Geoid Grid in little endian binary format ('g2012bu5.bin') | |
def __init__(self, leBinFile): | |
glamn, glomn, dla, dlo = np.fromfile(leBinFile,'<f8',4) |