getattrib
att = getattrib(D::GDtype, name::Union{String,Symbol}, n::Int=1) -> Union{String, Vector{String}}
Retrieve an attribute value from a GMT dataset or vector of datasets.
Arguments
D::GDtype: A GMT dataset (GMTdataset) or a vector of GMT datasetsname::Union{String,Symbol}: The name of the attribute to retrieven::Int=1: The index of the dataset in caseDis a vector (default: 1)
Returns
Union{String, Vector{String}}: The value of the requested attribute
Raises
error: Ifnis out of bounds whenDis a vectorerror: If the attributenameis not found in the dataset
Examples
getattrib(D, :pop)Source Code
This function has multiple methods:
getattrib(D::GDtype, name::Union{String, Symbol}, n::Int64)- utils.jl:1282getattrib(D::GDtype, name::Union{String, Symbol})- utils.jl:1282