PICDataStructures
PICDataStructures.AbstractAxisGrid
PICDataStructures.AxisGrid
PICDataStructures.SparseAxisGrid
PICDataStructures.autonames
PICDataStructures.axisnames
PICDataStructures.axisnames
PICDataStructures.downsample
PICDataStructures.find_field
PICDataStructures.plotdata
PICDataStructures.AbstractAxisGrid
— TypeAbstractAxisGrid{N,T,Names}
An AbstractAxisGrid
describes a structured grid in N
dimensions. Each axis has a name (form Names
) and the type of the elements is T
.
PICDataStructures.AxisGrid
— TypeAxisGrid{N,Nm1,T,R,Names}
This is a N
dimensional representation of a grid discretization which has a structure where the discretization along each axis can be defined through an AbstractVector
. This implies that the discretization step along each of the axes is not constant.
PICDataStructures.SparseAxisGrid
— TypeSparseAxisGrid{N,Nm1,T,R,Names}
This is a N
dimensional representation of a grid discretization which has a regular structure where the discretization along each axis can be defined through an AbstractRange
. This implies that the grid can be defined only through the start, stop and step for each axis.
PICDataStructures.autonames
— Methodautoname(N)
Given a N
generate a tuple of length N with :x,:y,:z or :x1,...:xn
PICDataStructures.axisnames
— Methodaxisnames(grid::AbstractGrid; include_units=true)
Get the names of the axis of the input grid
. In the case of Unitful quantities, they can be excluded by setting include_units
to false
.
PICDataStructures.axisnames
— Methodaxisnames(f::AbstractPICDataStructure; include_units=true)
Get the names of the axis of the grid corresponding to the input data structure f
. In the case of Unitful quantities, they can be excluded by setting include_units
to false
.
PICDataStructures.downsample
— Methoddownsample(f, target_size...)
Downsample the given input f
to target_size
. If no size is provided, one is computed based on the type.
PICDataStructures.find_field
— MethodA = find_filed(Fs)
returns the first AbstractPICDataStructure
among the arguments.
PICDataStructures.plotdata
— Methodplotdata(f::AbstractPICDataStructure; kwargs...)
Universal plotting function for AbstractPICDataStructure
s. It uses fieldplot
or scattervariable
depending of the input type of f
and adds a colorbar.
Keyword arguments
fig
: TheFigure
in which to add the plot. By default it creates a new figure withFigure()
figurepos
: TheFigurePosition
to use. The default isfig[1,1]
xlabel
: The labes of the x axis of the figure. By default is determined withaxisnames
ylabel
: The labes of the y axis of the figure. By default is determined withaxisnames
zlabel
: The labes of the z axis of the figure. By default is determined withaxisnames
downsample_size
: Thw approximate downsample size for the input data.
By default (:default
), it uses the heuristic values in downsample
. If you want to avoid downsampling the data, use nothing
. Otherwise, the argument is the approximate maiximun size along any direction.
cbar_orientation
: The orientation of the attachedColorbar
. By default is:vertical
.cbar_label
: TheColorbar
label. Empty (""
) by default.saveplot
: Whether to save the plot or not. Default isfalse
.filename
: The filename to use if saving the plot.
Any additional Keyword arguments are passed to the internal plotting function (fieldplot
or scattervariable
). If you specify an axis
keyword argument using the standard Makie NamedTuple
syntax, you can pass custom axis keywords, such as axis=(xticks=LinearTicks(10),)
.