simpeg.electromagnetics.natural_source.receivers.Point3DTipper.getP#
- Point3DTipper.getP(mesh, projected_grid, location_id=0)[source]#
Get projection matrix from mesh to specified receiver locations.
Natural source electromagnetic data may be computed from field measurements at one or two locations. The getP method returns the projection matrix from the mesh to the appropriate receiver locations. location_id=0 is used to project from the mesh to the set of roving receiver locations. location_id=1 is used when horizontal fields used to compute NSEM data are measured at a base station.
- Parameters:
- mesh
discretize.BaseMesh
A discretize mesh.
- projected_grid
str
Define what part of the mesh (i.e. edges, faces, centers, nodes) to project from. Must be one of:
'Ex', 'edges_x' -> x-component of field defined on x edges 'Ey', 'edges_y' -> y-component of field defined on y edges 'Ez', 'edges_z' -> z-component of field defined on z edges 'Fx', 'faces_x' -> x-component of field defined on x faces 'Fy', 'faces_y' -> y-component of field defined on y faces 'Fz', 'faces_z' -> z-component of field defined on z faces 'N', 'nodes' -> scalar field defined on nodes 'CC', 'cell_centers' -> scalar field defined on cell centers 'CCVx', 'cell_centers_x' -> x-component of vector field defined on cell centers 'CCVy', 'cell_centers_y' -> y-component of vector field defined on cell centers 'CCVz', 'cell_centers_z' -> z-component of vector field defined on cell centers
- locations_id
int
Receiver locations ID. 0 used for roving locations. 1 used for base station locations.
- mesh
- Returns:
scipy.sparse.csr_matrix
P, the interpolation matrix.