Commit 7b092657 authored by thopri's avatar thopri
Browse files

updated rotate coefficents so grids plot nicely

parent 823b6fbb
...@@ -82,10 +82,10 @@ def plot_grids(lat_in,lon_in,new_lat,new_lon,src_lat,src_lon): ...@@ -82,10 +82,10 @@ def plot_grids(lat_in,lon_in,new_lat,new_lon,src_lat,src_lon):
def _main(): def _main():
#Source Coords #Source Coords
dx = 2000 # units in km dx = 1000 # units in km
dy = 2000 # units in Km dy = 1000 # units in Km
jpi = 10 jpi = 15
jpj = 10 jpj = 15
zoffx = 0 zoffx = 0
zoffy = 0 zoffy = 0
jpk = 10 jpk = 10
...@@ -104,10 +104,10 @@ def _main(): ...@@ -104,10 +104,10 @@ def _main():
#Dst Coords #Dst Coords
dx = 100 # units in km dx = 100 # units in km
dy = 100 # units in Km dy = 100 # units in Km
jpi = 90 jpi = 100
jpj = 90 jpj = 100
zoffx = 0 zoffx = 20
zoffy = 0 zoffy = 20
jpk = 10 jpk = 10
max_dep = 100 max_dep = 100
min_dep = 10 min_dep = 10
...@@ -124,7 +124,7 @@ def _main(): ...@@ -124,7 +124,7 @@ def _main():
# set rotation and origin point # set rotation and origin point
rot = 45 rot = 45
theta = radians(rot) theta = radians(rot)
origin = (zoffx,zoffy) origin = (7,7)
new_lat,new_lon = rotate_around_point(grid_h2['latt'],grid_h2['lont'],theta,origin) new_lat,new_lon = rotate_around_point(grid_h2['latt'],grid_h2['lont'],theta,origin)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment