From 7b0926577a93d20aad3103c1e2e5850e37d2fee0 Mon Sep 17 00:00:00 2001
From: thopri <thopri@144-148.noc.soton.ac.uk>
Date: Wed, 11 Mar 2020 18:09:52 +0000
Subject: [PATCH] updated rotate coefficents so grids plot nicely

---
 unit_tests/rotate_pts.py | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/unit_tests/rotate_pts.py b/unit_tests/rotate_pts.py
index 24882e7..c673f5f 100644
--- a/unit_tests/rotate_pts.py
+++ b/unit_tests/rotate_pts.py
@@ -82,10 +82,10 @@ def plot_grids(lat_in,lon_in,new_lat,new_lon,src_lat,src_lon):
 
 def _main():
     #Source Coords
-    dx = 2000 # units in km
-    dy = 2000 # units in Km
-    jpi = 10
-    jpj = 10
+    dx = 1000 # units in km
+    dy = 1000 # units in Km
+    jpi = 15
+    jpj = 15
     zoffx = 0
     zoffy = 0
     jpk = 10
@@ -104,10 +104,10 @@ def _main():
     #Dst Coords
     dx = 100 # units in km
     dy = 100 # units in Km
-    jpi = 90
-    jpj = 90
-    zoffx = 0
-    zoffy = 0
+    jpi = 100
+    jpj = 100
+    zoffx = 20
+    zoffy = 20
     jpk = 10
     max_dep = 100
     min_dep = 10
@@ -124,7 +124,7 @@ def _main():
     # set rotation and origin point
     rot = 45
     theta = radians(rot)
-    origin = (zoffx,zoffy)
+    origin = (7,7)
 
 
     new_lat,new_lon = rotate_around_point(grid_h2['latt'],grid_h2['lont'],theta,origin)
-- 
GitLab