API Reference

Main Functions

Speasy.get_dataFunction
get_data(args...; drop_nan=false)

Get data using speasy Python package. We support the same arguments as speasy.get_data.

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.

source
Speasy.@spz_strMacro
spz"provider/dataset/parameter"
spz"provider/dataset/parameter1,parameter2"

String macro to create a SpeasyProduct from a string identifier. Supports multiple parameters separated by commas, which returns a tuple of SpeasyProduct objects.

Examples

# Single parameter
product = spz"cda/OMNI_HRO_1MIN/flow_speed"

# Multiple parameters
products = spz"cda/OMNI_HRO_1MIN/flow_speed,Pressure"
source
Speasy.list_parametersFunction
list_parameters(provider, [dataset])

Find the available parameters for a given provider or for a specific dataset from provider.

Examples

# List all parameters from AMDA provider
list_parameters(:amda)

# List parameters from specific CDA dataset
list_parameters(:cda, "SOHO_ERNE-HED_L2-1MIN")

# output
5-element Vector{String}:
 "est"
 "PH"
 "AH"
 "PHC"
 "AHC"

See also: list_datasets

source
Speasy.list_datasetsFunction
list_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

# List all datasets from AMDA provider
list_datasets(:amda)

# List CDA datasets containing "OMNI"
list_datasets(:cda, :OMNI)

# List CDA datasets containing both "OMNI" and "HRO"
list_datasets(:cda, :OMNI, :HRO)

# output
4-element Vector{String}:
 "OMNI_HRO_1MIN"
 "OMNI_HRO2_1MIN"
 "OMNI_HRO_5MIN"
 "OMNI_HRO2_5MIN"

See also: list_parameters

source

Data Types

Speasy.VariableAxisType

A wrapper of speasy.VariableAxis. https://github.com/SciQLop/speasy/blob/main/speasy/core/data_containers.py#L234

source

Data Access and Processing

Speasy.sanitize!Function

Replaces invalid values and fill values by NaN for var with float type elements.

source

Public

Speasy.VariableAxisType

A wrapper of speasy.VariableAxis. https://github.com/SciQLop/speasy/blob/main/speasy/core/data_containers.py#L234

source
Speasy.get_dataMethod
get_data(args...; drop_nan=false)

Get data using speasy Python package. We support the same arguments as speasy.get_data.

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.

source
Speasy.list_datasetsMethod
list_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

# List all datasets from AMDA provider
list_datasets(:amda)

# List CDA datasets containing "OMNI"
list_datasets(:cda, :OMNI)

# List CDA datasets containing both "OMNI" and "HRO"
list_datasets(:cda, :OMNI, :HRO)

# output
4-element Vector{String}:
 "OMNI_HRO_1MIN"
 "OMNI_HRO2_1MIN"
 "OMNI_HRO_5MIN"
 "OMNI_HRO2_5MIN"

See also: list_parameters

source
Speasy.list_parametersMethod
list_parameters(provider, [dataset])

Find the available parameters for a given provider or for a specific dataset from provider.

Examples

# List all parameters from AMDA provider
list_parameters(:amda)

# List parameters from specific CDA dataset
list_parameters(:cda, "SOHO_ERNE-HED_L2-1MIN")

# output
5-element Vector{String}:
 "est"
 "PH"
 "AH"
 "PHC"
 "AHC"

See also: list_datasets

source
Speasy.sanitize!Method

Replaces invalid values and fill values by NaN for var with float type elements.

source
Speasy.@spz_strMacro
spz"provider/dataset/parameter"
spz"provider/dataset/parameter1,parameter2"

String macro to create a SpeasyProduct from a string identifier. Supports multiple parameters separated by commas, which returns a tuple of SpeasyProduct objects.

Examples

# Single parameter
product = spz"cda/OMNI_HRO_1MIN/flow_speed"

# Multiple parameters
products = spz"cda/OMNI_HRO_1MIN/flow_speed,Pressure"
source