API Reference
Main Functions
Speasy.get_data — Function
get_data(args...; sanitize = true, layout = :julia, drop_nan = false, kw...)speasy.get_data with the same arguments, e.g. a "provider/product" path, an inventory object, or a vector of them.
sanitize masks fill values with NaN; SpaceDataModel.mask_invalid(v) also masks values outside VALIDMIN/VALIDMAX. layout sets the dimension order; see SpeasyVariable.
Set drop_nan=true to drop the nan values. Note that we need to do that in Python since we cannot convert NaT (not a time) to Julia.
Speasy.@spz_str — Macro
spz"provider/dataset/parameter"SpeasyProduct("provider/dataset/parameter").
Speasy.SpeasyDataset — Type
SpeasyDataset(provider, id)
Data Types
Speasy.SpeasyVariable — Type
A wrapper of speasy.SpeasyVariable.
Speasy.VariableAxis — Type
A wrapper of speasy.VariableAxis. https://github.com/SciQLop/speasy/blob/main/speasy/core/data_containers.py#L234
Public
Speasy.SpeasyProduct — Type
SpeasyProduct(id; provider=:cda, metadata=NoMetadata(), kw...)The Speasy parameter id ("provider/dataset/parameter", or a standalone one like "amda/imf"), prefixed with provider when id names none; kw merge into metadata.
Speasy.SpeasyVariable — Type
A wrapper of speasy.SpeasyVariable.
Speasy.SpeasyVariable — Method
SpeasyVariable(py; layout = :julia)Wrap speasy.SpeasyVariable py without copying its values. With layout = :julia, time is the last dimension and dimension i is DEPEND_i; time-varying axes are time-last too. layout = :python keeps numpy's dimension order, time first.
Speasy.VariableAxis — Type
A wrapper of speasy.VariableAxis. https://github.com/SciQLop/speasy/blob/main/speasy/core/data_containers.py#L234
Speasy.find_datasets — Method
find_datasets(provider, [term...])Find the available datasets for a given provider, optionally filtered by search terms (only datasets containing all specified terms will be returned.)
Examples
find_datasets(:amda) # all datasets from AMDA
find_datasets(:cda, :OMNI) # CDA datasets containing "OMNI"julia> find_datasets(:cda, :OMNI, :HRO)
4-element Vector{String}:
"OMNI_HRO_1MIN"
"OMNI_HRO2_1MIN"
"OMNI_HRO_5MIN"
"OMNI_HRO2_5MIN"See also: list_parameters
Speasy.get_data — Method
get_data(args...; sanitize = true, layout = :julia, drop_nan = false, kw...)speasy.get_data with the same arguments, e.g. a "provider/product" path, an inventory object, or a vector of them.
sanitize masks fill values with NaN; SpaceDataModel.mask_invalid(v) also masks values outside VALIDMIN/VALIDMAX. layout sets the dimension order; see SpeasyVariable.
Set drop_nan=true to drop the nan values. Note that we need to do that in Python since we cannot convert NaT (not a time) to Julia.
Speasy.list_parameters — Method
list_parameters(provider, [dataset]; verbose=false)Find the available parameter ids for a given provider or for a specific dataset from provider; the latter are keys(provider[dataset]).
Set verbose=true to print the metadata of the dataset.
Examples
list_parameters(:amda) # all parameters from AMDAjulia> list_parameters(:cda, "SOHO_ERNE-HED_L2-1MIN")
5-element Vector{String}:
"est"
"PH"
"AH"
"PHC"
"AHC"See also: find_datasets
Speasy.@spz_str — Macro
spz"provider/dataset/parameter"SpeasyProduct("provider/dataset/parameter").