Data processing for article

This commit is contained in:
Edgar P. Burkhart 2022-07-06 07:55:18 +02:00
parent c443947e3c
commit 34fcb4e879
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
2 changed files with 9 additions and 2 deletions

View file

@ -60,6 +60,12 @@ x = np.arange(
)
theta = np.angle(D.dot((1, 1j)))
log.info(f"N points: {bathy.size:e}")
S = bathy[:, 0].ptp() * bathy[:, 1].ptp()
log.info(f"Surface: {S*1e-6:.2f}km^2")
res = np.sqrt(S / bathy.size)
log.info(f"Resolution: {res:.2f}m")
coords = artha + (x * np.stack((np.cos(theta), np.sin(theta)))).T
log.info("Interpolating bathymetry in 1D")