API Reference
Public
SpaceDataModel.AbstractCoordinateSystem
— TypeAbstractCoordinateSystem
Base abstract type for all coordinate system implementations.
SpaceDataModel.AbstractCoordinateVector
— TypeAbstractCoordinateVector
Base abstract type to represent coordinates in a coordinate systems.
SpaceDataModel.AbstractDataVariable
— TypeA variable v
of a type derived from AbstractDataVariable
should at least implement:
Base.parent(v)
: the parent array of the variable
Optional:
times(v)
: the timestamps of the variableunits(v)
: the units of the variablemeta(v)
: the metadata of the variablename(v)
: the name of the variable
SpaceDataModel.DataSet
— TypeDataSet <: AbstractDataSet
A concrete dataset with a name, data (parameters), and metadata.
SpaceDataModel.DataSet
— MethodConstruct a DataSet
from a name and data, with optional metadata.
SpaceDataModel.DataSet
— MethodDataSet(ld::LDataSet; kwargs...)
Create a concrete DataSet
from a Dataset template with specified data.
See also: LDataSet
SpaceDataModel.Instrument
— TypeInstrument <: AbstractInstrument
Fields
name
: The name of the instrumentmetadata
: Additional metadatadatasets
: Collection of datasets
SpaceDataModel.Instrument
— MethodConstruct an Instrument
from a dictionary.
SpaceDataModel.Instrument
— Methodkeyword-based constructor
SpaceDataModel.LDataSet
— TypeLDataSet <: AbstractDataSet
A template for generating datasets with parameterized naming patterns.
Fields
format
: Format string pattern for the dataset namedata
: Dictionary of variable patternsmetadata
: Additional metadata
Examples
using SPEDAS.MMS
# Access FPI dataset specification
lds = mms.datasets.fpi_moms
# Create a concrete dataset with specific parameters
ds = DataSet(lds; probe=1, data_rate="fast", data_type="des")
The format string and variable patterns use placeholders like {probe}
, {data_rate}
, which are replaced with actual values when creating a concrete DataSet
.
SpaceDataModel.LDataSet
— MethodConstruct a LDataSet
from a dictionary.
SpaceDataModel.Project
— TypeProject <: AbstractProject
A representation of a project or mission containing instruments and datasets.
Fields
name
: The name of the projectmetadata
: Additional metadatainstruments
: Collection of instrumentsdatasets
: Collection of datasets
SpaceDataModel.Project
— Methodkeyword-based constructor
SpaceDataModel.abbr
— Methodabbr(p)
Get the abbreviation (abbr) of p
.
SpaceDataModel.getcsys
— Methodgetcsys(x)
Get the coordinate system of x
.
If x
is a instance of AbstractCoordinateSystem
, return x
itself. If x
is a type of AbstractCoordinateSystem
, return an instance of the coordinate system, i.e. x()
.
This is a generic function, packages should extend it for their own types.
Private
Base.:∘
— MethodCreate a new product with the composed function
SpaceDataModel._getfield
— Function_getfield(v, name, default)
Return the field from a composite v
for the given name
, or the given default
if no field is present.
See also: getfield
.
SpaceDataModel.is_doy
— MethodCheck if a string is in Day of Year format (YYYY-DDD).