gridfile.metadata

Return the metadata for a gridfile


Syntax



Description

metadata = obj.metadata
metadata = obj.metadata(0)

Returns the gridMetadata object for a .grid file.

sourceMetadata = obj.metadata(-1)
sourceMetadata = obj.metadata(s)
sourceMetadata = obj.metadata(sourceNames)

Returns the metadata for the specified data sources. If -1 is provided as input, returns the metadata for all data sources in the gridfile.


Input Arguments

s

logical vector [nSources] | vector, linear indices
The indices of the data sources for which to return metadata.

sourceNames

string vector
The names of the data sources for which to return metadata.

Output Arguments

metadata

scalar gridMetadata object
Metadata for the gridfile.

sourceMetadata

gridMetadata vector [nSource]
Metadata for each specified data source.