Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pymagglobal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
pymagglobal
Commits
d67241e3
Commit
d67241e3
authored
4 years ago
by
Stefan Mauerberger
Browse files
Options
Downloads
Patches
Plain Diff
Minor doc-string fixes
parent
66f95bbd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1
Sphinx Documentation
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pymagglobal/pymagglobal.py
+6
-5
6 additions, 5 deletions
pymagglobal/pymagglobal.py
pymagglobal/utils.py
+7
-4
7 additions, 4 deletions
pymagglobal/utils.py
with
13 additions
and
9 deletions
pymagglobal/pymagglobal.py
+
6
−
5
View file @
d67241e3
...
...
@@ -169,13 +169,14 @@ def field(z_at, splines):
Parameters
----------
z_at : array-like of shape (4, n) in
f
ortran order
z_at : array-like of shape (4, n) in
F
ortran order
the locations at which to evaluate the splines. should be as expected
by pyfield, i.e.
z_at[0] contains co-latitudes in degrees
z_at[1] contains longitudes in degrees
z_at[2] contains radii in km
z_at[3] contains dates in years
* z_at[0] contains co-latitudes in degrees
* z_at[1] contains longitudes in degrees
* z_at[2] contains radii in km
* z_at[3] contains dates in years
splines : scipy.interpolate.BSpline
the splines specifying the model
...
...
This diff is collapsed.
Click to expand it.
pymagglobal/utils.py
+
7
−
4
View file @
d67241e3
...
...
@@ -57,13 +57,16 @@ def nez2dif(n, e, z):
def
equi_sph
(
n
,
twopi
=
True
):
'''
Regularly place points on the surface of the unit sphere. the number of
output points may differ from n
'''
Regularly place points on the surface of the unit sphere [1]_. the number of
output points may differ from n ...
.. todo:: Return a ndarray rather than using generators.
Import equi_sph from pyfield
References
----------
[1] M. Deserno,
"
How to generate equidistributed points on the surface
of a
sphere
"
, Max-Planck-Institut für Polymerforschung, 2004.
..
[1] M. Deserno,
"
How to generate equidistributed points on the surface
of a
sphere
"
, Max-Planck-Institut für Polymerforschung, 2004.
'''
a
=
4
*
np
.
pi
/
n
d
=
np
.
sqrt
(
a
)
...
...
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