Skip to content

list of fields in structs is confusing #184

@gaelforget

Description

@gaelforget

Should streamline the handling of meta data

For example, these two types :

struct XBTtransect <: AbstractOceanRobotData
    source::String
    format::String ##default will be ~ IMOS case (i.e. simple DataFrame )
    mission::String
    transect::String
    folder::String
    data::Union{Array,Dataset,DataFrame}
    stations::DataFrame
end

and

struct Glider_EGO <: AbstractOceanRobotData
    ID::Union{Missing,Int64}
    data::Any #Union{NamedTuple,DataFrame}
    meta::DataFrame
end

Would become :

struct XBTtransect <: AbstractOceanRobotData
    data::Union{NamedTuple,DataFrame}
    meta::Union{NamedTuple,DataFrame}
end

and

struct Glider_EGO <: AbstractOceanRobotData
    data::Union{NamedTuple,DataFrame}
    meta::Union{NamedTuple,DataFrame}
end
  • with all meta data like source, ID, etc embedded in meta.
  • the Union{NamedTuple,DataFrame} choice may need more thought.
  • Ideally with consistent names for meta data but that's not always obvious; can be preferable to use legacy names that the community is used to (e.g. stations, casts, etc).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions