Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
RoutingPP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IPSL
LMD
InTro
RoutingPP
Commits
9f76e002
Commit
9f76e002
authored
5 years ago
by
POLCHER Jan
Browse files
Options
Downloads
Patches
Plain Diff
Small corrections on the llij function for the Lambert projection.
parent
12795750
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Projections.py
+3
-3
3 additions, 3 deletions
Projections.py
with
3 additions
and
3 deletions
Projections.py
+
3
−
3
View file @
9f76e002
...
@@ -69,14 +69,14 @@ def LC_llij(polyll, hemi, truelat1, truelat2, polei, polej, rebydx, stdlon, cone
...
@@ -69,14 +69,14 @@ def LC_llij(polyll, hemi, truelat1, truelat2, polei, polej, rebydx, stdlon, cone
for
lon
,
lat
in
polyll
:
for
lon
,
lat
in
polyll
:
deltalon
=
lon
-
self
.
stdlon
deltalon
=
lon
-
stdlon
if
(
deltalon
>
+
180.
)
:
deltalon
=
deltalon
-
360.
if
(
deltalon
>
+
180.
)
:
deltalon
=
deltalon
-
360.
if
(
deltalon
<
-
180.
)
:
deltalon
=
deltalon
+
360.
if
(
deltalon
<
-
180.
)
:
deltalon
=
deltalon
+
360.
tl1r
=
truelat1
*
rad_per_deg
tl1r
=
truelat1
*
rad_per_deg
ctl1r
=
np
.
cos
(
tl1r
)
ctl1r
=
np
.
cos
(
tl1r
)
rm
=
self
.
rebydx
*
ctl1r
/
cone
*
(
np
.
tan
((
90.
*
hemi
-
lat
)
*
rad_per_deg
/
2.
)
/
np
.
tan
((
90.
*
hemi
-
truelat1
)
*
rad_per_deg
/
2.
))
**
cone
rm
=
rebydx
*
ctl1r
/
cone
*
(
np
.
tan
((
90.
*
hemi
-
lat
)
*
rad_per_deg
/
2.
)
/
np
.
tan
((
90.
*
hemi
-
truelat1
)
*
rad_per_deg
/
2.
))
**
cone
arg
=
cone
*
(
deltalon
*
rad_per_deg
)
arg
=
cone
*
(
deltalon
*
rad_per_deg
)
i
=
polei
+
hemi
*
rm
*
np
.
sin
(
arg
)
i
=
polei
+
hemi
*
rm
*
np
.
sin
(
arg
)
...
@@ -127,7 +127,7 @@ class LambertC:
...
@@ -127,7 +127,7 @@ class LambertC:
def
llij
(
self
,
polyll
)
:
def
llij
(
self
,
polyll
)
:
polyij
=
LC_llij
(
poly
ij
,
self
.
hemi
,
self
.
truelat1
,
self
.
truelat2
,
self
.
polei
,
self
.
polej
,
self
.
rebydx
,
self
.
stdlon
,
self
.
cone
)
polyij
=
LC_llij
(
poly
ll
,
self
.
hemi
,
self
.
truelat1
,
self
.
truelat2
,
self
.
polei
,
self
.
polej
,
self
.
rebydx
,
self
.
stdlon
,
self
.
cone
)
return
polyij
return
polyij
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment