Package uk.ac.rdg.resc.edal.feature
Class GridFeature
- java.lang.Object
-
- uk.ac.rdg.resc.edal.feature.AbstractDiscreteFeature<GeoPosition,GridCell4D>
-
- uk.ac.rdg.resc.edal.feature.GridFeature
-
- All Implemented Interfaces:
Serializable,DiscreteFeature<GeoPosition,GridCell4D>,Feature<GeoPosition>
public class GridFeature extends AbstractDiscreteFeature<GeoPosition,GridCell4D>
An implementation of aFeaturewhose domain is aGridDomain- Author:
- Guy
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MapFeatureextractMapFeature(Set<String> varIds, RegularGrid targetGrid, Double elevation, org.joda.time.DateTime time)Extracts aMapFeaturefrom thisGridFeatureGridDomaingetDomain()Array4D<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 Array4D<Number> getValues(String paramId)
Description copied from interface:DiscreteFeatureGets 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:
getValuesin interfaceDiscreteFeature<GeoPosition,GridCell4D>- Overrides:
getValuesin classAbstractDiscreteFeature<GeoPosition,GridCell4D>- Parameters:
paramId- The identifier from theFeature.getVariableIds()set of parameter IDs.- Returns:
- the list of values for the requested member
-
getDomain
public GridDomain getDomain()
Description copied from interface:DiscreteFeature- Specified by:
getDomainin interfaceDiscreteFeature<GeoPosition,GridCell4D>- Specified by:
getDomainin interfaceFeature<GeoPosition>- Overrides:
getDomainin classAbstractDiscreteFeature<GeoPosition,GridCell4D>- Returns:
- the domain of the values contained with the feature. May not
return
null
-
extractMapFeature
public MapFeature extractMapFeature(Set<String> varIds, RegularGrid targetGrid, Double elevation, org.joda.time.DateTime time) throws DataReadingException
Extracts aMapFeaturefrom thisGridFeature- Parameters:
varIds- The variable IDs to extract. Ifnull, all variables are extracted.targetGrid- The desiredRegularGridof the resultingMapFeatureelevation- The elevation at which to extract data, can benullonly if thisGridFeaturehas no vertical domaintime- The time at which to extract data, can benullonly if thisGridFeaturehas no vertical domain- Returns:
- The extracted
MapFeature - Throws:
DataReadingException- If there is a problem reading the required data
-
-