@@ -108,7 +108,7 @@ def _lon0(self):
108
108
@property
109
109
def coordinate_frame (self ):
110
110
"""
111
- The coordinate frame that the PFSS solution is in .
111
+ Coordinate frame of the input map .
112
112
113
113
Notes
114
114
-----
@@ -144,7 +144,7 @@ def bunit(self):
144
144
@property
145
145
def source_surface_br (self ):
146
146
"""
147
- Br on the source surface.
147
+ Radial magnetic field component on the source surface.
148
148
149
149
Returns
150
150
-------
@@ -167,8 +167,8 @@ def source_surface_pils(self):
167
167
168
168
Notes
169
169
-----
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.
172
172
"""
173
173
from skimage import measure
174
174
m = self .source_surface_br
@@ -238,6 +238,8 @@ def _bTrace(self, t, coord, direction):
238
238
239
239
def trace (self , tracer , seeds ):
240
240
"""
241
+ Trace magnetic field lines.
242
+
241
243
Parameters
242
244
----------
243
245
tracer : tracing.Tracer
@@ -289,9 +291,9 @@ def bc(self):
289
291
290
292
Returns
291
293
-------
292
- br
293
- btheta
294
- bphi
294
+ br : numpy.ndarray
295
+ btheta : numpy.ndarray
296
+ bphi : numpy.ndarray
295
297
"""
296
298
br , bs , bp , Sbr , Sbs , Sbp = self ._common_b ()
297
299
# Remove area factors:
@@ -450,30 +452,23 @@ def _common_b(self):
450
452
451
453
def get_bvec (self , coords , out_type = "spherical" ):
452
454
"""
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.
459
456
460
457
Parameters
461
458
----------
462
459
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).
465
462
466
463
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).
471
467
472
468
Returns
473
469
-------
474
470
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.
477
472
478
473
Notes
479
474
-----
0 commit comments