spacepy.pybats.bats.MagGridFile¶
- class spacepy.pybats.bats.MagGridFile(*args, **kwargs)[source]¶
Magnetometer grids are a recent addition to BATS-R-US: instead of specifying a small set of individual stations, the user can specify a grid of many stations spanning a latitude/longitude range. The files are output in the usual
spacepy.pybats.IdlFile
format. This class handles the reading, manipulating, and visualization of these files.- __init__(*args, **kwargs)[source]¶
Base class for “Data Model” representation data
Abstract method, reimplement
- Attributes:
- attrsdict
dictionary of the attributes of the SpaceData object
Methods
add_contour
(value[, nlev, target, loc, ...])Add a lat-lon contour plot of variable value.
calc_h
()Calculate the total horizontal perturbation, 'h', using the pythagorean sum of the two horizontal components (east and west components).
interp
(var, lons, lats)Interpolate variable var to point(s) lats, lons.
Attributes
- add_contour(value, nlev=30, target=None, loc=111, title=None, xlabel=None, ylabel=None, ylim=None, xlim=None, add_cbar=False, clabel=None, filled=True, dolog=False, zlim=None, coords=None, add_conts=False, *args, **kwargs)[source]¶
Add a lat-lon contour plot of variable value.
- calc_h()[source]¶
Calculate the total horizontal perturbation, ‘h’, using the pythagorean sum of the two horizontal components (east and west components).
- interp(var, lons, lats)[source]¶
Interpolate variable var to point(s) lats, lons. lats and lons can either be scalar or a numpy-like array. Values interpolated to these positions is returned to the caller either as a scalar or array.
Simple bilinear interpolation is used.
- attrs: collections.abc.Mapping¶