Check the minimal time interval to cover the distribution of solar wind discontinuity properties.

Code
using DrWatson
@quickactivate
include(srcdir("main.jl"))
using Dates
Code
wind_df = load(datadir("events.Wind.fit.ts_0.09s_tau_60s.arrow"));
┌ Warning: automatically converting Arrow.Timestamp with precision = MICROSECOND to `DateTime` which only supports millisecond precision; conversion may be lossy; to avoid converting, pass `Arrow.Table(source; convert=false)
└ @ Arrow /Users/zijin/.julia/packages/Arrow/rIDSw/src/eltypes.jl:273
┌ Warning: automatically converting Arrow.Timestamp with precision = NANOSECOND to `DateTime` which only supports millisecond precision; conversion may be lossy; to avoid converting, pass `Arrow.Table(source; convert=false)
└ @ Arrow /Users/zijin/.julia/packages/Arrow/rIDSw/src/eltypes.jl:273
Code
# Subset the data
df = wind_df;
df_s1 = subset(df, :time => t -> year.(t) .== 2013);
df_s2 = subset(df_s1, :time => t -> month.(t) .< 3);
Code
temp_plot(x; kwargs...) = plot_dist(x; datalimits=datalimits_f, kwargs...)

plots = temp_plot.([
    data(df) * mapping(color=year_map),
    data(df_s1) * mapping(color=month_map),
    data(df_s2) * mapping(color=week_map)
])

display.(plots);

fnames = ["wind_distribution_time_year", "wind_distribution_time_month", "wind_distribution_time_week"]
easy_save.(fnames, plots);
┌ Info: Saved /Users/zijin/projects/ids_spatial_evolution_juno/figures/wind_distribution_time_year.svg
└ @ Beforerr /Users/zijin/.julia/dev/Beforerr/src/utils/makie.jl:45
┌ Info: Saved /Users/zijin/projects/ids_spatial_evolution_juno/figures/wind_distribution_time_month.svg
└ @ Beforerr /Users/zijin/.julia/dev/Beforerr/src/utils/makie.jl:45
┌ Info: Saved /Users/zijin/projects/ids_spatial_evolution_juno/figures/wind_distribution_time_week.svg
└ @ Beforerr /Users/zijin/.julia/dev/Beforerr/src/utils/makie.jl:45
(a) … grouped by year
(b) … grouped by month for the year 2013
(c) … grouped by week for the first two months of 2013
Figure 1: Distribution of (normalized) thickness and current density of SWD