From dcd7b1df7dfb395ea0f2c3ef8419b2def3009381 Mon Sep 17 00:00:00 2001 From: "Edgar P. Burkhart" Date: Mon, 14 Mar 2022 13:34:21 +0100 Subject: [PATCH] Modified limits of bathy export --- data/config.ini | 2 ++ data/processing/projection.py | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/config.ini b/data/config.ini index 4a6214a..bec1798 100644 --- a/data/config.ini +++ b/data/config.ini @@ -9,6 +9,8 @@ root=out sub=bathy_sub.npy out=bathy.npy step=1 +left=0 +right=150 [artha] lat=43.398450 diff --git a/data/processing/projection.py b/data/processing/projection.py index dc3fa20..a172385 100644 --- a/data/processing/projection.py +++ b/data/processing/projection.py @@ -3,7 +3,6 @@ import configparser import logging import pathlib -import matplotlib.pyplot as plt import numpy as np from scipy import interpolate @@ -51,8 +50,8 @@ buoy = np.asarray(projection.cartesian(*buoy_curvi)) D = np.diff(np.stack((artha, buoy)), axis=0) x = np.arange( - -150, - np.sqrt((D**2).sum()) + 150, + config.getfloat("out", "left", fallback=0), + np.sqrt((D**2).sum()) + config.getfloat("out", "right", fallback=0), config.getfloat("out", "step", fallback=1), ) theta = np.angle(D.dot((1, 1j)))