Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
thopri
PyNEMO
Commits
7b092657
Commit
7b092657
authored
5 years ago
by
thopri
Browse files
Options
Download
Email Patches
Plain Diff
updated rotate coefficents so grids plot nicely
parent
823b6fbb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
unit_tests/rotate_pts.py
unit_tests/rotate_pts.py
+9
-9
No files found.
unit_tests/rotate_pts.py
View file @
7b092657
...
...
@@ -82,10 +82,10 @@ def plot_grids(lat_in,lon_in,new_lat,new_lon,src_lat,src_lon):
def
_main
():
#Source Coords
dx
=
2
000
# units in km
dy
=
2
000
# units in Km
jpi
=
1
0
jpj
=
1
0
dx
=
1
000
# units in km
dy
=
1
000
# units in Km
jpi
=
1
5
jpj
=
1
5
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
=
9
0
jpj
=
9
0
zoffx
=
0
zoffy
=
0
jpi
=
10
0
jpj
=
10
0
zoffx
=
2
0
zoffy
=
2
0
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
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment