Modified limits of bathy export
This commit is contained in:
parent
1c930431fe
commit
c6ecf287ea
2 changed files with 4 additions and 3 deletions
|
@ -9,6 +9,8 @@ root=out
|
||||||
sub=bathy_sub.npy
|
sub=bathy_sub.npy
|
||||||
out=bathy.npy
|
out=bathy.npy
|
||||||
step=1
|
step=1
|
||||||
|
left=0
|
||||||
|
right=150
|
||||||
|
|
||||||
[artha]
|
[artha]
|
||||||
lat=43.398450
|
lat=43.398450
|
||||||
|
|
|
@ -3,7 +3,6 @@ import configparser
|
||||||
import logging
|
import logging
|
||||||
import pathlib
|
import pathlib
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from scipy import interpolate
|
from scipy import interpolate
|
||||||
|
|
||||||
|
@ -51,8 +50,8 @@ buoy = np.asarray(projection.cartesian(*buoy_curvi))
|
||||||
|
|
||||||
D = np.diff(np.stack((artha, buoy)), axis=0)
|
D = np.diff(np.stack((artha, buoy)), axis=0)
|
||||||
x = np.arange(
|
x = np.arange(
|
||||||
-150,
|
config.getfloat("out", "left", fallback=0),
|
||||||
np.sqrt((D**2).sum()) + 150,
|
np.sqrt((D**2).sum()) + config.getfloat("out", "right", fallback=0),
|
||||||
config.getfloat("out", "step", fallback=1),
|
config.getfloat("out", "step", fallback=1),
|
||||||
)
|
)
|
||||||
theta = np.angle(D.dot((1, 1j)))
|
theta = np.angle(D.dot((1, 1j)))
|
||||||
|
|
Loading…
Reference in a new issue