Class WeatherParameter
One variable at one level of a WeatherGridSet, with its time steps: for example the U component of the wind at 10 m.
public sealed class WeatherParameter
- Inheritance
-
WeatherParameter
- Inherited Members
Constructors
WeatherParameter(WeatherParameterDefinition, WeatherLevel, IReadOnlyList<WeatherTimeStep>, IReadOnlyList<float>?, string?)
Creates a parameter from a row of the canonical table.
public WeatherParameter(WeatherParameterDefinition definition, WeatherLevel level, IReadOnlyList<WeatherTimeStep> steps, IReadOnlyList<float>? missingValues = null, string? sourceName = null)
Parameters
definitionWeatherParameterDefinitionThe canonical parameter, from WeatherParameters.
levelWeatherLevelThe level the values are given at.
stepsIReadOnlyList<WeatherTimeStep>The time steps.
missingValuesIReadOnlyList<float>Sentinel values that mark missing points in decoded steps (for example a CF
_FillValue). NaN is always missing.sourceNamestringThe reader's name for the variable, for example a GRIB2 short name or a NetCDF variable name.
WeatherParameter(string, string, WeatherLevel, IReadOnlyList<WeatherTimeStep>, IReadOnlyList<float>?, string?)
Creates a parameter that isn't in the canonical table. It's listed (for
example in info output) but not drawn.
public WeatherParameter(string id, string units, WeatherLevel level, IReadOnlyList<WeatherTimeStep> steps, IReadOnlyList<float>? missingValues = null, string? sourceName = null)
Parameters
idstringAn id that can't clash with a canonical one, for example
"grib2:0,1,8"or"netcdf:tp".unitsstringThe units as the file gives them.
levelWeatherLevelThe level the values are given at.
stepsIReadOnlyList<WeatherTimeStep>The time steps.
missingValuesIReadOnlyList<float>Sentinel values that mark missing points in decoded steps.
sourceNamestringThe reader's name for the variable.
Exceptions
- ArgumentException
idis empty or is a canonical id.
Properties
Definition
The row of the canonical table, or null for an unknown parameter.
public WeatherParameterDefinition? Definition { get; }
Property Value
Id
The canonical id (WeatherParameters), or the reader's id for an unknown parameter.
public string Id { get; }
Property Value
IsKnown
Whether the parameter is in the canonical table, and so can be drawn.
public bool IsKnown { get; }
Property Value
Level
The level the values are given at.
public WeatherLevel Level { get; }
Property Value
LevelDescription
The level description, for example "10 m above ground".
public string LevelDescription { get; }
Property Value
MissingValues
Sentinel values that mark missing points in decoded steps. NaN is always missing.
public IReadOnlyList<float> MissingValues { get; }
Property Value
SourceName
The reader's name for the variable, when it has one.
public string? SourceName { get; }
Property Value
Steps
The time steps, in the order the reader found them.
public IReadOnlyList<WeatherTimeStep> Steps { get; }
Property Value
Unit
The unit values are stored in; Other for an unknown parameter.
public WeatherUnit Unit { get; }
Property Value
Units
The units label, for example "metres", or the file's units for an unknown parameter.
public string Units { get; }
Property Value
Methods
ToString()
Returns the id and level, for example "wind.u @ 10 m above ground".
public override string ToString()