Quickstart

Here, we show an example of loading data from CDAWeb using Speasy.jl and visualizing it with SpacePhysicsMakie.jl. For additional approaches to retrieving data, see the Julia Space Physics Tutorials. You can also refer to the Data page for a detailed explanation of supported data formats and retrieval methods.

Get data with Speasy

Speasy.jl provides functions to load data from main Space Physics WebServices (CDA,SSC,AMDA,..).

It could be installed using using Pkg; Pkg.add("Speasy").

using Speasy
using CairoMakie, SpacePhysicsMakie

# da = get_data("amda/imf", "2016-6-2", "2016-6-5")
data = Speasy.get_data("cda/OMNI_HRO_1MIN/Pressure", "2016-6-2", "2016-6-3"; sanitize=true)
SpeasyVariable{Float32, 2}: Pressure
  Time Range: 2016-06-02T00:00:00.000000000 to 2016-06-02T23:59:00.000000000
  Units: nPa
  Size: (1440, 1)
  Memory Usage: 18.021 KiB
  Metadata:
    VAR_NOTES: Derived parameters are obtained from the following equations. Flow pressure = (2*10**-6)*Np*Vp**2 nPa (Np in cm**-3, Vp in km/s, subscript p for proton) 
    FILLVAL: Any[99.98999786376953]
    DEPEND_0: Epoch
    BIN_LOCATION: 0.0
    FIELDNAM: Flow pressure
    VALIDMAX: Any[100.0]
    SCALEMAX: Any[100.0]
    FORMAT: F5.2
    VAR_TYPE: data
    CATDESC: Flow pressure (nPa)
    SCALEMIN: Any[0.0]
    LABLAXIS: Flow pressure
    VALIDMIN: Any[0.0]
    DISPLAY_TYPE: time_series
    UNITS: nPa

Plot the data

tplot(data)
Example block output