Skip to content
This repository was archived by the owner on Aug 24, 2023. It is now read-only.

Commit ba7c4b1

Browse files
authored
Merge pull request #275 from dstansby/output-doc
Clean up output docs
2 parents 685062e + 2ade428 commit ba7c4b1

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

pfsspy/output.py

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def _lon0(self):
108108
@property
109109
def coordinate_frame(self):
110110
"""
111-
The coordinate frame that the PFSS solution is in.
111+
Coordinate frame of the input map.
112112
113113
Notes
114114
-----
@@ -144,7 +144,7 @@ def bunit(self):
144144
@property
145145
def source_surface_br(self):
146146
"""
147-
Br on the source surface.
147+
Radial magnetic field component on the source surface.
148148
149149
Returns
150150
-------
@@ -167,8 +167,8 @@ def source_surface_pils(self):
167167
168168
Notes
169169
-----
170-
This is always returned as a list of coordinates, as in general there
171-
may be more than one polarity inversion line.
170+
This is always returned as a list of `~astropy.coordinates.SkyCoord`,
171+
as in general there may be more than one polarity inversion line.
172172
"""
173173
from skimage import measure
174174
m = self.source_surface_br
@@ -238,6 +238,8 @@ def _bTrace(self, t, coord, direction):
238238

239239
def trace(self, tracer, seeds):
240240
"""
241+
Trace magnetic field lines.
242+
241243
Parameters
242244
----------
243245
tracer : tracing.Tracer
@@ -289,9 +291,9 @@ def bc(self):
289291
290292
Returns
291293
-------
292-
br
293-
btheta
294-
bphi
294+
br : numpy.ndarray
295+
btheta : numpy.ndarray
296+
bphi : numpy.ndarray
295297
"""
296298
br, bs, bp, Sbr, Sbs, Sbp = self._common_b()
297299
# Remove area factors:
@@ -450,30 +452,23 @@ def _common_b(self):
450452

451453
def get_bvec(self, coords, out_type="spherical"):
452454
"""
453-
Evaluate magnetic vectors in pfss model.
454-
455-
Method which takes an arbitrary astropy SkyCoord and
456-
returns a numpy array containing magnetic field vectors
457-
evaluated from the parent pfsspy.Output pfss model at
458-
the locations specified by the SkyCoords
455+
Interpolate magnetic vectors at arbitrary coordinates.
459456
460457
Parameters
461458
----------
462459
coords : `astropy.SkyCoord`
463-
An arbitary point or set of points (length N >= 1)
464-
in the PFSS model domain (1Rs < r < Rss)
460+
An arbitary point or set of points (length N >= 1) in the PFSS
461+
model domain (1Rs < r < Rss).
465462
466463
out_type : str, optional
467-
Takes values 'spherical' (default) or 'cartesian'
468-
and specifies whether the output vector is in
469-
spherical coordinates (B_r,B_theta,B_phi) or
470-
cartesian (B_x,B_y,B_z)
464+
Takes values 'spherical' (default) or 'cartesian' and specifies
465+
whether the output vector is in spherical coordinates
466+
(B_r, B_theta, B_phi) or cartesian (B_x, B_y, B_z).
471467
472468
Returns
473469
-------
474470
bvec : ndarray
475-
Magnetic field vectors at the requested locations
476-
ndarray.shape = (N,3), units nT)
471+
(N, 3) shaped array of magnetic field vectors.
477472
478473
Notes
479474
-----

0 commit comments

Comments
 (0)