Class TLcdNetCDFMultiBandDataSource
- All Implemented Interfaces:
ILcdDataSource
A data source to create NetCDF images with multiple bands. It is composed of multiple
TLcdNetCDFDataSource
instances, which can be retrieved from the
model decoder.
Note that the data sources in this TLcdNetCDFMultiBandDataSource
should be compatible. If not, the
model decoder will throw an exception when trying to decode the data source. Compatible in this case means
that the different data sources should represent data with the same bounds, dimensions (x/y/vertical/time),
resolution, etc...
Multi-band images are useful for visualizing data as an icon grid. For example: wind data can be represented by an
image with 2 bands, one for the x-direction and one for the y-direction. This image can then be painted using
ILcdParameterizedIcon
objects like
TLcdEarthWindIcon
, which converts the values in the
x-direction and y-direction to a wind-barb on the screen.
- Since:
- 2015.0
-
Constructor Summary
ConstructorDescriptionTLcdNetCDFMultiBandDataSource
(List<TLcdNetCDFDataSource> aDataSources) Creates a new multi band data source from the given data sources.TLcdNetCDFMultiBandDataSource
(List<TLcdNetCDFDataSource> aDataSources, String aDescription) Deprecated. -
Method Summary
-
Constructor Details
-
TLcdNetCDFMultiBandDataSource
Creates a new multi band data source from the given data sources. A description will be generated from the given data sources.- Parameters:
aDataSources
- a list ofTLcdNetCDFDataSource
objects.
-
TLcdNetCDFMultiBandDataSource
Deprecated.UseTLcdNetCDFMultiBandDataSource(List)
instead.Creates a new multi band data source from the given data sources. The given description will be ignored, a description will be generated from the data sources in all cases.- Parameters:
aDataSources
- a list ofTLcdNetCDFDataSource
objects.aDescription
- this parameter is ignored, the description is generated from the data sources in all cases.
-
-
Method Details
-
getDataSources
Returns the data sources of which this multi band data source is composed. The returned list is unmodifiable.- Returns:
- the data sources of which this multi band data source is composed.
-
getDescription
Returns the description of this data source. The description looks like this:- "source[name1, name2]" for a dual-band data source with a common source.
- "[source1[name1], source2[name2]]" for two single-band data sources with different source.
- Specified by:
getDescription
in interfaceILcdDataSource
- Returns:
- the description of this data source, never
null
.
-
equals
-
hashCode
public int hashCode() -
toString
-
TLcdNetCDFMultiBandDataSource(List)
instead.