Table of Contents

Class NetCdfAttribute

Namespace
EncDotNet.S100.Datasets.NetCdf
Assembly
EncDotNet.S100.Datasets.NetCdf.dll

A NetCDF attribute: text, or one or more numbers. Global attributes belong to the file; variable attributes to a variable.

public sealed class NetCdfAttribute
Inheritance
NetCdfAttribute
Inherited Members

Constructors

NetCdfAttribute(string, NetCdfDataType, IReadOnlyList<double>)

Creates a numeric attribute.

public NetCdfAttribute(string name, NetCdfDataType dataType, IReadOnlyList<double> numbers)

Parameters

name string

The attribute's name.

dataType NetCdfDataType

The type the file stores the numbers as.

numbers IReadOnlyList<double>

The numbers.

NetCdfAttribute(string, string)

Creates a text attribute.

public NetCdfAttribute(string name, string text)

Parameters

name string

The attribute's name.

text string

Its text.

Properties

DataType

The type the file stores the values as.

public NetCdfDataType DataType { get; }

Property Value

NetCdfDataType

FirstNumber

The first number, or null for a text or empty attribute.

public double? FirstNumber { get; }

Property Value

double?

IsText

Whether the attribute holds text.

public bool IsText { get; }

Property Value

bool

Name

The attribute's name, for example "units".

public string Name { get; }

Property Value

string

Numbers

The numbers of a numeric attribute; empty for a text attribute.

public IReadOnlyList<double> Numbers { get; }

Property Value

IReadOnlyList<double>

Text

The text of a text attribute; otherwise null.

public string? Text { get; }

Property Value

string

Methods

ToString()

Returns the text, or the numbers separated by commas.

public override string ToString()

Returns

string