Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CORBASS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
sec23
korte
CORBASS
Merge requests
!1
Smooth global plots
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Smooth global plots
central_longitue
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Stefan Mauerberger
requested to merge
central_longitue
into
master
5 years ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Might fix
#7 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
67f55eea
1 commit,
5 years ago
1 file
+
5
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
corbass/src/inversion.py
+
5
−
0
Options
@@ -1047,6 +1047,11 @@ class Inversion:
Hannes
'
library.
"""
theta
,
phi
=
zip
(
*
pyfield
.
equi_sph
(
n
))
# Phi's range is [0,2*pi]. To achieve smooth global plots with cartopy
# the interval depends on the central longitude (cl) chosen. AFAIK it
# shall be [-180+ct,180+ct] to have points that hit the projection's
# edges. If we agree on cl=0, subtracting pi shall do the job.
phi
=
np
.
subtract
(
phi
,
np
.
pi
)
colat
,
lon
=
np
.
rad2deg
((
theta
,
phi
))
n_desi
=
len
(
colat
)
# Actual number of design points
# Allocate array and store locations as expected by Hannes libraries
Loading