Package uk.ac.rdg.resc.edal.feature
Class MapFeature
- java.lang.Object
-
- uk.ac.rdg.resc.edal.feature.AbstractDiscreteFeature<HorizontalPosition,GridCell2D>
-
- uk.ac.rdg.resc.edal.feature.MapFeature
-
- All Implemented Interfaces:
Serializable
,DiscreteFeature<HorizontalPosition,GridCell2D>
,Feature<HorizontalPosition>
public class MapFeature extends AbstractDiscreteFeature<HorizontalPosition,GridCell2D> implements Serializable
An implementation of aFeature
whose domain is aDiscreteHorizontalDomain
. This will be returned from any readMapData operations, and can be passed to plotting routines. Note that the purpose of thisFeature
is to read data onto a discrete grid regardless of the original domain of the data. The main use case is in extracting onto a grid which defines an image - i.e. eachGridCell2D
in the domain will map exactly onto a single pixel.- Author:
- Guy
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapDomain
getDomain()
Array2D<Number>
getValues(String paramId)
Gets the array of values for the given parameter.-
Methods inherited from class uk.ac.rdg.resc.edal.feature.AbstractDiscreteFeature
getDescription, getFeatureProperties, getId, getName, getParameter, getParameterMap, getVariableIds
-
-
-
-
Method Detail
-
getValues
public Array2D<Number> getValues(String paramId)
Description copied from interface:DiscreteFeature
Gets the array of values for the given parameter. The shape of this array must match the shape of the array of domain objects (fromDiscreteDomain.getDomainObjects()
).- Specified by:
getValues
in interfaceDiscreteFeature<HorizontalPosition,GridCell2D>
- Overrides:
getValues
in classAbstractDiscreteFeature<HorizontalPosition,GridCell2D>
- Parameters:
paramId
- The identifier from theFeature.getVariableIds()
set of parameter IDs.- Returns:
- the list of values for the requested member
-
getDomain
public MapDomain getDomain()
Description copied from interface:DiscreteFeature
- Specified by:
getDomain
in interfaceDiscreteFeature<HorizontalPosition,GridCell2D>
- Specified by:
getDomain
in interfaceFeature<HorizontalPosition>
- Overrides:
getDomain
in classAbstractDiscreteFeature<HorizontalPosition,GridCell2D>
- Returns:
- the domain of the values contained with the feature. May not
return
null
-
-