You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be useful to think of useful output from a few structs that can be printed in REPL, as opposed to the default, which is largely not so useful as I see it.
E.g.:
julia> simdir = ClimaAnalysis.SimDir(output_dir)
ClimaAnalysis.Sim.SimDir{Dict{Any, Any}, Dict{Any, Any}}("output/les_isdac_box/output_0007", Dict{Any, Any}("cl"=>Dict{Any, Any}("average"=>Dict{Any, Any}("1h"=>"output/les_isdac_box/output_0007/cl_1h_average.nc"), "inst"=>Dict{Any, Any}("10m"=>"output/les_isdac_box/output_0007/cl_10m_inst.nc")), "hussn"=>Dict{Any, Any}("average"=>Dict{Any, Any}("1h"=>"output/les_isdac_box/output_0007/hussn_1h_average.nc")), "rhoa"=>Dict{Any, Any}("average"=>Dict{Any, Any}("1h"=>"output/les_isdac_box/output_0007/rhoa_1h_average.nc"), "inst"=>Dict{Any, Any}("10m"=>"output/les_isdac_box/output_0007/rhoa_10m_inst.nc")), "evspsbl"=>Dict{Any, Any}("average"=>Dict{Any, Any}("1h"=>"output/les_isdac_box/output_0007/evspsbl_1h_average.nc"), "inst"=>Dict{Any, Any}("10m"=>"output/les_isdac_box/output_0007/evspsbl_10m_inst.nc")), "hus"=>Dict{Any, Any}("average"=>Dict{Any, Any}("1[...][...][...][...]# maybe an abbreviated version of summary(simdir)?julia> simdir = ClimaAnalysis.SimDir(output_dir)Output directory: output/les_isdac_box/output_0007Available variables: cl, hussn, rhoa, evspsbl # either short like thisVariables: cl [average (1h), inst (10m)], hussn [average (1h)], rhoa [average (1h), inst (10m)], evspsbl [average (1h), inst (10m)] # or longer like this?
and
julia>get(simdir; short_name="hus", reduction="inst")
ClimaAnalysis.Var.OutputVar{Vector{Float32}, Array{Float32, 4}, String, Dict{Union{AbstractString, Symbol}, Any}, Interpolations.Extrapolation{Float32, 4, Interpolations.GriddedInterpolation{Float32, 4, Array{Float32, 4}, Interpolations.Gridded{Interpolations.Linear{Interpolations.Throw{Interpolations.OnGrid}}}, NTuple{4, Vector{Float32}}}, Interpolations.Gridded{Interpolations.Linear{Interpolations.Throw{Interpolations.OnGrid}}}, Interpolations.Throw{Nothing}}}(Dict("units"=>"kg kg^-1", "short_name"=>"hus", "long_name"=>"Specific Humidity, Instantaneous", "start_date"=>"2010-01-01T00:00:00", "comments"=>"Mass of all water phases per mass of air"), OrderedCollections.OrderedDict{String, Vector{Float32}}("time"=> [0.0, 599.8271, 1199.4447, 1798.8295, 2398.014, 2996.9983, 3595.7825, 4194.335, 4792.6885, 5390.843…16122.558, 16716.803, 17310.842, 17904.678, 18498.31, 19091.74, 19
[...]
[... maaaany more lines due to interpolations struct...]
[...]
julia>get(simdir; short_name="hus", reduction="inst")
Variable: Specific Humidity, Instantaneous (hus) [kg kg^-1]
Dimensions: time (0s --21463s), x (0m --3200m), y (0m --3200m), z (83m --2416m)]
alternatively, draw inspiration from DimensionalData.jl for a more visual representation.
╭────────────────────────────╮
│ 10×7×5 DimArray{Float64,3} │
├────────────────────────────┴─────────────────────────────────────────── dims ┐
↓ X, → Y, ↗ Z
└──────────────────────────────────────────────────────────────────────────────┘
[:, :, 1]
0.07608480.06418840.6802250.6836960.02052280.5636230.6739660.09926840.9704590.3307770.2410560.01968080.6690210.1074750.2064060.4447080.119960.3221150.2258650.8021220.4216920.944120.01929110.3514130.4689680.2696850.1501260.2154580.9174570.1625530.1843090.7194950.2211630.42310.7213310.9167020.7941630.8807960.8396180.3801610.1808940.3751820.488170.4987640.9049610.3923770.6254350.7861470.7693130.3398880.3586250.2907340.07784160.4514250.8797740.6053240.4811840.8283950.8702760.03231820.1957740.4674840.2559160.7588650.6803520.6792210.9207360.03755220.2966390.139067
The text was updated successfully, but these errors were encountered:
It would be useful to think of useful output from a few structs that can be printed in REPL, as opposed to the default, which is largely not so useful as I see it.
E.g.:
and
alternatively, draw inspiration from DimensionalData.jl for a more visual representation.
The text was updated successfully, but these errors were encountered: