Analysis Tools

SPEDAS.current_densityFunction
current_density(B, V)

Calculate the current density time series from the magnetic field (B) and plasma velocity (V) time series.

Assume 1-D structure along the z-direction. Remember to transform the coordinates of B and V first (e.g. using mva

source

Utilities

Most of the utilities operate on the time dimension by default, but you can specify other dimensions using the dims parameter. See the API reference for a complete list of available functions and their parameters.

These utilities are designed to simplify common data analysis tasks for time series data. While most are thin wrappers around existing Julia functions, they ensure proper handling of metadata and dimensions specific to space physics datasets.

Arithmetic

SPEDAS.tcrossFunction
tcross(x, y; dims=TimeDim, stack=nothing)

Compute the cross product of two (arrays of) vectors along the dims dimension.

References:

  • https://docs.xarray.dev/en/stable/generated/xarray.cross.html
source
SPEDAS.tdotFunction
tdot(x, y; dims=TimeDim)

Dot product of two arrays x and y along the dims dimension.

source
SPEDAS.tsubtractFunction
tsubtract(x, f=nanmedian; dims=timedim(x))

Subtract a statistic (default function f: nanmedian) along dimensions (default: time dimension) from x.

source

Time-Domain Operations

SPEDAS.tclipFunction
tclip(d, t0, t1)

Clip a dimension or DimArray to a time range [t0, t1].

source
SPEDAS.tviewFunction
tview(d, t0, t1)

View a dimension or DimArray in time range [t0, t1].

source
Missing docstring.

Missing docstring for tmask. Check Documenter's build log for details.

SPEDAS.tshiftFunction
tshift(x; dim=TimeDim, t0=nothing, new_dim=nothing)

Shift the dim of x by t0.

source