From 26672420033689ebe495a243da31dc245848a9b5 Mon Sep 17 00:00:00 2001 From: Nils-Arne Dreier <dreier@dkrz.de> Date: Thu, 25 Jul 2024 08:46:10 +0200 Subject: [PATCH] convert coords to radiants --- components/groundstation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/groundstation.py b/components/groundstation.py index 335adf5..22f6dc6 100644 --- a/components/groundstation.py +++ b/components/groundstation.py @@ -32,7 +32,7 @@ yac = YAC() comp = yac.def_comp("pamtra") -coords = np.array(args.coords) +coords = np.deg2rad(args.coords) ncoords = len(args.coords) grid = UnstructuredGrid("pamtra-grid", [3]*ncoords, [*coords[:, 0], *(coords[:, 0]+0.1), *coords[:, 0]], @@ -92,7 +92,7 @@ while True: data = {} for v, f in fields.items(): data[v], info = f.get() - print(v, data[v].shape, file=sys.stderr) + print(v, np.linalg.norm(data[v]), file=sys.stderr) call_pamtra(**data, datetime=datetime) if info == Action.GET_FOR_RESTART: break -- GitLab