|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bc.ceres.core.ExtensibleObject
org.esa.beam.framework.datamodel.ProductNode
org.esa.beam.framework.datamodel.DataNode
org.esa.beam.framework.datamodel.RasterDataNode
public abstract class RasterDataNode
The RasterDataNode class ist the abstract base class for all objects in the product package that contain
rasterized data. i.e. Band and TiePointGrid. It unifies the access to raster data in the
product model. A raster is considered as a rectangular raw data array with a fixed width and height. A raster data
node can scale its raw raster data samples in order to return geophysically meaningful pixel values.
getRasterData(),
getRasterWidth(),
getRasterHeight(),
isScalingApplied(),
isLog10Scaled(),
getScalingFactor(),
getScalingOffset()| Nested Class Summary | |
|---|---|
class |
RasterDataNode.RasterDataDoubleList
Adapts a DoubleList |
static interface |
RasterDataNode.RasterDataProcessor
Deprecated. since BEAM 4.5. No direct replacement, implement a GPF operator or a SingleBandedOpImage instead. |
| Field Summary | |
|---|---|
static String |
INVALID_POS_TEXT
Text returned by the method if no data is available at the given pixel
position. |
static String |
IO_ERROR_TEXT
Text returned by the method if an I/O error occurred while pixel data was
reloaded. |
static String |
NO_DATA_TEXT
Text returned by the method if no data is available at the given pixel
position. |
static String |
PROPERTY_NAME_GEOCODING
|
static String |
PROPERTY_NAME_IMAGE_INFO
|
static String |
PROPERTY_NAME_LOG_10_SCALED
|
static String |
PROPERTY_NAME_NO_DATA_VALUE
|
static String |
PROPERTY_NAME_NO_DATA_VALUE_USED
|
static String |
PROPERTY_NAME_ROI_DEFINITION
Deprecated. since BEAM 4.11, no replacement |
static String |
PROPERTY_NAME_SCALING_FACTOR
|
static String |
PROPERTY_NAME_SCALING_OFFSET
|
static String |
PROPERTY_NAME_STX
|
static String |
PROPERTY_NAME_VALID_PIXEL_EXPRESSION
|
| Fields inherited from class org.esa.beam.framework.datamodel.DataNode |
|---|
PROPERTY_NAME_DATA, PROPERTY_NAME_READ_ONLY, PROPERTY_NAME_SYNTHETIC, PROPERTY_NAME_UNIT |
| Fields inherited from class org.esa.beam.framework.datamodel.ProductNode |
|---|
PROPERTY_NAME_DESCRIPTION, PROPERTY_NAME_NAME |
| Fields inherited from interface org.esa.beam.framework.datamodel.Scaling |
|---|
IDENTITY |
| Constructor Summary | |
|---|---|
protected |
RasterDataNode(String name,
int dataType,
int width,
int height)
Constructs an object of type RasterDataNode. |
| Method Summary | |
|---|---|
abstract void |
acceptVisitor(ProductVisitor visitor)
Accepts the given visitor. |
boolean |
canBeOrthorectified()
Tests if this raster data node can be orthorectified. |
void |
checkCompatibleRasterData(ProductData rasterData,
int w,
int h)
Deprecated. since BEAM 4.11. No replacement. |
void |
clearNoDataValue()
Clears the no-data value, so that isNoDataValueSet() will return false. |
protected Stx |
computeStxImpl(int level,
com.bc.ceres.core.ProgressMonitor pm)
Computes the statistics. |
BufferedImage |
createColorIndexedImage(com.bc.ceres.core.ProgressMonitor pm)
Creates an image for this raster data node. |
ProductData |
createCompatibleRasterData()
Creates raster data that is compatible to this dataset's data type. |
ProductData |
createCompatibleRasterData(int width,
int height)
Creates raster data that is compatible to this dataset's data type. |
ProductData |
createCompatibleSceneRasterData()
Creates raster data that is compatible to this dataset's data type. |
ImageInfo |
createDefaultImageInfo(double[] histoSkipAreas,
Histogram histogram)
Creates an instance of a default image information. |
ImageInfo |
createDefaultImageInfo(double[] histoSkipAreas,
com.bc.ceres.core.ProgressMonitor pm)
Creates a default image information instance. |
IndexValidator |
createPixelValidator(int lineOffset,
javax.media.jai.ROI roi)
Creates a validator which can be used to validate indexes of pixels in a flat raster data buffer. |
protected Pointing |
createPointing()
Creates a Pointing applicable for this raster. |
BufferedImage |
createRgbImage(com.bc.ceres.core.ProgressMonitor pm)
Creates an RGB image for this raster data node. |
protected abstract RenderedImage |
createSourceImage()
Creates the source image associated with this RasterDataNode. |
TransectProfileData |
createTransectProfileData(Shape shape)
Creates a transect profile for the given shape (-outline). |
void |
dispose()
Releases all of the resources used by this object instance and all of its owned children. |
void |
fireImageInfoChanged()
Notifies listeners that the image (display) information has changed. |
GeoCoding |
getGeoCoding()
Returns the geo-coding of this RasterDataNode. |
int |
getGeophysicalDataType()
Returns the geophysical data type of this RasterDataNode. |
com.bc.ceres.glevel.MultiLevelImage |
getGeophysicalImage()
|
double |
getGeophysicalNoDataValue()
Gets the geophysical no-data value which is simply the scaled "raw" no-data value returned by getNoDataValue(). |
ImageInfo |
getImageInfo()
Gets the image information for image display. |
ImageInfo |
getImageInfo(double[] histoSkipAreas,
com.bc.ceres.core.ProgressMonitor pm)
Gets the image creation information. |
ImageInfo |
getImageInfo(com.bc.ceres.core.ProgressMonitor pm)
Returns the image information for this raster data node. |
double |
getNoDataValue()
Gets the no-data value as a primitive double. |
ProductNodeGroup<Mask> |
getOverlayMaskGroup()
|
abstract double |
getPixelDouble(int x,
int y)
Deprecated. since BEAM 4.11. Use getSampleFloat(int, int) instead. |
abstract float |
getPixelFloat(int x,
int y)
Deprecated. since BEAM 4.11. Use getSampleFloat(int, int) instead. |
abstract int |
getPixelInt(int x,
int y)
Deprecated. since BEAM 4.11. Use getSampleInt(int, int) instead. |
double[] |
getPixels(int x,
int y,
int w,
int h,
double[] pixels)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
abstract double[] |
getPixels(int x,
int y,
int w,
int h,
double[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
float[] |
getPixels(int x,
int y,
int w,
int h,
float[] pixels)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
abstract float[] |
getPixels(int x,
int y,
int w,
int h,
float[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
int[] |
getPixels(int x,
int y,
int w,
int h,
int[] pixels)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
abstract int[] |
getPixels(int x,
int y,
int w,
int h,
int[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
String |
getPixelString(int x,
int y)
Returns the pixel located at (x,y) as a string value. |
Pointing |
getPointing()
Gets a Pointing if one is available for this raster. |
ProductData |
getRasterData()
Deprecated. Since BEAM 4.11. Use getSourceImage() or the various readPixels()
method variants to retrieve or read raster data. |
int |
getRasterHeight()
Returns the height of the raster used by this product raster. |
int |
getRasterWidth()
Returns the width of the raster used by this product raster. |
ProductNodeGroup<Mask> |
getRoiMaskGroup()
Deprecated. since BEAM 4.10 (no replacement) |
float |
getSampleFloat(int x,
int y)
Gets a geo-physical sample value at the given pixel coordinate as float value. |
int |
getSampleInt(int x,
int y)
Gets a geo-physical sample value at the given pixel coordinate as int value. |
double |
getScalingFactor()
Gets the scaling factor which is applied to raw ProductData. |
double |
getScalingOffset()
Gets the scaling offset which is applied to raw ProductData. |
abstract ProductData |
getSceneRasterData()
Deprecated. since BEAM 4.11, use getSourceImage() instead. |
int |
getSceneRasterHeight()
Returns the height in pixels of the scene represented by this product raster. |
int |
getSceneRasterWidth()
Returns the width in pixels of the scene represented by this product raster. |
com.bc.ceres.glevel.MultiLevelImage |
getSourceImage()
Gets the source image associated with this RasterDataNode. |
Stx |
getStx()
Gets the statistics. |
Stx |
getStx(boolean accurate,
com.bc.ceres.core.ProgressMonitor pm)
Gets the statistics. |
String |
getValidMaskExpression()
Gets the expression used for the computation of the mask which identifies valid pixel values. |
com.bc.ceres.glevel.MultiLevelImage |
getValidMaskImage()
Gets the valid-mask image associated with this RasterDataNode. |
String |
getValidPixelExpression()
Gets the expression that is used to determine whether a pixel is valid or not. |
Shape |
getValidShape()
Gets the shape of the area where this raster data contains valid samples. |
boolean |
hasIntPixels()
Determines whether this raster data node contains integer samples. |
boolean |
hasRasterData()
Deprecated. since BEAM 4.11. No replacement. |
boolean |
isCompatibleRasterData(ProductData rasterData,
int w,
int h)
Deprecated. since BEAM 4.11. No replacement. |
boolean |
isFloatingPointType()
Returns true if the pixel data contained in this band is "naturally" a floating point number type. |
boolean |
isGeophysicalImageSet()
Returns whether the geophysical image is set on this RasterDataNode. |
boolean |
isLog10Scaled()
Gets whether or not the ProductData of this band has a negative binominal distribution and
thus the common logarithm (base 10) of the values is stored in the raw data. |
boolean |
isNoDataValueSet()
Tests whether or not a no-data value has been specified. |
boolean |
isNoDataValueUsed()
Tests whether or not the no-data value is used. |
boolean |
isPixelValid(int pixelIndex)
Checks whether or not the pixel located at (x,y) is valid. |
boolean |
isPixelValid(int x,
int y)
Checks whether or not the pixel located at (x,y) is valid. |
boolean |
isPixelValid(int x,
int y,
javax.media.jai.ROI roi)
Checks whether or not the pixel located at (x,y) is valid. |
boolean |
isScalingApplied()
Tests whether scaling of raw raster data values is applied before they are returned as geophysically meaningful pixel values. |
boolean |
isSourceImageSet()
Returns whether the source image is set on this RasterDataNode. |
boolean |
isStxSet()
|
boolean |
isValidMaskImageSet()
Returns wether the valid mask image is set on this RasterDataNode. |
static boolean |
isValidMaskProperty(String propertyName)
Tests if the given name is the name of a property which is relevant for the computation of the valid mask. |
boolean |
isValidMaskUsed()
Tests whether or not this raster data node uses a data-mask in order to determine valid pixels. |
void |
loadRasterData()
Deprecated. since BEAM 4.11. No replacement. |
void |
loadRasterData(com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. No replacement. |
protected void |
processRasterData(String message,
RasterDataNode.RasterDataProcessor processor,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.5. No direct replacement, implement a GPF operator or a SingleBandedOpImage instead. |
void |
quantizeRasterData(double newMin,
double newMax,
double gamma,
byte[] samples,
int offset,
int stride,
com.bc.ceres.core.ProgressMonitor pm)
|
byte[] |
quantizeRasterData(double newMin,
double newMax,
double gamma,
com.bc.ceres.core.ProgressMonitor pm)
|
double[] |
readPixels(int x,
int y,
int w,
int h,
double[] pixels)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
abstract double[] |
readPixels(int x,
int y,
int w,
int h,
double[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
float[] |
readPixels(int x,
int y,
int w,
int h,
float[] pixels)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
abstract float[] |
readPixels(int x,
int y,
int w,
int h,
float[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
int[] |
readPixels(int x,
int y,
int w,
int h,
int[] pixels)
|
abstract int[] |
readPixels(int x,
int y,
int w,
int h,
int[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
void |
readRasterData(int offsetX,
int offsetY,
int width,
int height,
ProductData rasterData)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
abstract void |
readRasterData(int offsetX,
int offsetY,
int width,
int height,
ProductData rasterData,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
void |
readRasterDataFully()
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
abstract void |
readRasterDataFully(com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. Use getSourceImage() instead. |
boolean[] |
readValidMask(int x,
int y,
int w,
int h,
boolean[] validMask)
|
void |
resetValidMask()
Resets the valid mask of this raster. |
double |
scale(double v)
Applies the scaling v * scalingFactor + scalingOffset the the given input value. |
double |
scaleInverse(double v)
Applies the inverse scaling (v - scalingOffset) / scalingFactor the the given input value. |
void |
setGeoCoding(GeoCoding geoCoding)
Sets the geo-coding for this RasterDataNode. |
void |
setGeophysicalNoDataValue(double noDataValue)
Sets the geophysical no-data value which is simply the scaled "raw" no-data value returned by getNoDataValue(). |
void |
setImageInfo(ImageInfo imageInfo)
Sets the image information for image display. |
protected void |
setImageInfo(ImageInfo imageInfo,
boolean change)
|
void |
setLog10Scaled(boolean log10Scaled)
Sets whether or not the ProductData of this band has a negative binominal distribution and
thus the common logarithm (base 10) of the values is stored in the raw data. |
void |
setModified(boolean modified)
Sets this node's modified flag. |
void |
setNoDataValue(double noDataValue)
Sets the no-data value as a primitive double. |
void |
setNoDataValueUsed(boolean noDataValueUsed)
Sets whether or not the no-data value is used. |
abstract void |
setPixelDouble(int x,
int y,
double pixelValue)
Deprecated. since BEAM 4.11. No replacement. |
abstract void |
setPixelFloat(int x,
int y,
float pixelValue)
Deprecated. since BEAM 4.11. No replacement. |
abstract void |
setPixelInt(int x,
int y,
int pixelValue)
Deprecated. since BEAM 4.11. No replacement. |
abstract void |
setPixels(int x,
int y,
int w,
int h,
double[] pixels)
Deprecated. since BEAM 4.11. Use setSourceImage() or the various readPixels()
method variants to set or write raster data. |
abstract void |
setPixels(int x,
int y,
int w,
int h,
float[] pixels)
Deprecated. since BEAM 4.11. Use setSourceImage() or the various readPixels()
method variants to set or write raster data. |
abstract void |
setPixels(int x,
int y,
int w,
int h,
int[] pixels)
Deprecated. since BEAM 4.11. Use setSourceImage() or the various readPixels()
method variants to set or write raster data. |
void |
setRasterData(ProductData rasterData)
Deprecated. Since BEAM 4.11. Use setSourceImage() or the various readPixels()
method variants to set or write raster data. |
void |
setScalingFactor(double scalingFactor)
Sets the scaling factor which is applied to raw ProductData. |
void |
setScalingOffset(double scalingOffset)
Sets the scaling offset which is applied to raw ProductData. |
void |
setSourceImage(com.bc.ceres.glevel.MultiLevelImage sourceImage)
Sets the source image associated with this RasterDataNode. |
void |
setSourceImage(RenderedImage sourceImage)
Sets the source image associated with this RasterDataNode. |
void |
setStx(Stx stx)
Sets the statistics. |
void |
setValidPixelExpression(String validPixelExpression)
Sets the expression that is used to determine whether a pixel is valid or not. |
void |
unloadRasterData()
Deprecated. since BEAM 4.11. No replacement. |
void |
updateExpression(String oldExternalName,
String newExternalName)
Asks a product node to replace all occurences of and references to the node name given by oldExternalName with oldExternalName. |
void |
writePixels(int x,
int y,
int w,
int h,
double[] pixels)
|
abstract void |
writePixels(int x,
int y,
int w,
int h,
double[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
Writes the range of given pixels specified to the specified coordinates as doubles. |
void |
writePixels(int x,
int y,
int w,
int h,
float[] pixels)
|
abstract void |
writePixels(int x,
int y,
int w,
int h,
float[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
Writes the range of given pixels specified to the specified coordinates as floats. |
void |
writePixels(int x,
int y,
int w,
int h,
int[] pixels)
|
abstract void |
writePixels(int x,
int y,
int w,
int h,
int[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
Writes the range of given pixels specified to the specified coordinates as integers. |
void |
writeRasterData(int offsetX,
int offsetY,
int width,
int height,
ProductData rasterData)
Deprecated. since BEAM 4.11. Use setSourceImage() or the various readPixels() method variants to set or write raster data. |
abstract void |
writeRasterData(int offsetX,
int offsetY,
int width,
int height,
ProductData rasterData,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. since BEAM 4.11. Use setSourceImage() or the various readPixels() method variants to set or write raster data. |
void |
writeRasterDataFully()
|
abstract void |
writeRasterDataFully(com.bc.ceres.core.ProgressMonitor pm)
Writes the complete underlying raster data. |
| Methods inherited from class org.esa.beam.framework.datamodel.DataNode |
|---|
checkDataCompatibility, createCompatibleProductData, fireProductNodeDataChanged, getData, getDataElems, getDataElemSize, getDataType, getNumDataElems, getRawStorageSize, getUnit, isReadOnly, isSynthetic, setData, setDataElems, setReadOnly, setSynthetic, setUnit |
| Methods inherited from class org.esa.beam.framework.datamodel.ProductNode |
|---|
fireProductNodeChanged, fireProductNodeChanged, getDescription, getDisplayName, getName, getOwner, getProduct, getProductReader, getProductReaderSafe, getProductRefString, getProductSafe, getProductWriter, getProductWriterSafe, getRawStorageSize, isModified, isPartOfSubset, isValidNodeName, removeFromFile, setDescription, setName, setOwner, toString |
| Methods inherited from class com.bc.ceres.core.ExtensibleObject |
|---|
getExtension |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PROPERTY_NAME_IMAGE_INFO
public static final String PROPERTY_NAME_LOG_10_SCALED
@Deprecated public static final String PROPERTY_NAME_ROI_DEFINITION
public static final String PROPERTY_NAME_SCALING_FACTOR
public static final String PROPERTY_NAME_SCALING_OFFSET
public static final String PROPERTY_NAME_NO_DATA_VALUE
public static final String PROPERTY_NAME_NO_DATA_VALUE_USED
public static final String PROPERTY_NAME_VALID_PIXEL_EXPRESSION
public static final String PROPERTY_NAME_GEOCODING
public static final String PROPERTY_NAME_STX
public static final String NO_DATA_TEXT
getPixelString(int, int) method if no data is available at the given pixel
position.
public static final String INVALID_POS_TEXT
getPixelString(int, int) method if no data is available at the given pixel
position.
public static final String IO_ERROR_TEXT
getPixelString(int, int) method if an I/O error occurred while pixel data was
reloaded.
| Constructor Detail |
|---|
protected RasterDataNode(String name,
int dataType,
int width,
int height)
RasterDataNode.
name - the name of the new objectdataType - the data type used by the raster, must be one of the multiple ProductData.TYPE_X
constants, with the exception of ProductData.TYPE_UINT32width - the width of the raster in pixelsheight - the height of the raster in pixels| Method Detail |
|---|
public int getSceneRasterWidth()
getRasterWidth().
public int getSceneRasterHeight()
getRasterHeight().
public final int getRasterWidth()
public final int getRasterHeight()
public void setModified(boolean modified)
ProductNode
setModified in class ProductNodemodified - whether or not this node is beeing marked as modified.Product.fireNodeChanged(org.esa.beam.framework.datamodel.ProductNode, java.lang.String, java.lang.Object, java.lang.Object)public GeoCoding getGeoCoding()
RasterDataNode.
public void setGeoCoding(GeoCoding geoCoding)
RasterDataNode.
Also sets the geo-coding of the parent Product if it has no geo-coding yet.
On property change, the method calls ProductNode.fireProductNodeChanged(String) with the property
name PROPERTY_NAME_GEOCODING.
geoCoding - the new geo-codingProduct.setGeoCoding(GeoCoding)protected Pointing createPointing()
Pointing applicable for this raster.
public Pointing getPointing()
Pointing if one is available for this raster.
The methods calls createPointing() if a pointing has not been set so far or if its GeoCoding changed
since the last creation of this raster's Pointing instance.
public boolean canBeOrthorectified()
public boolean isFloatingPointType()
true if the pixel data contained in this band is "naturally" a floating point number type.
isFloatingPointType in class DataNodepublic int getGeophysicalDataType()
RasterDataNode. The value returned is always one of the
ProductData.TYPE_XXX constants.
ProductData,
isScalingApplied()public final double getScalingFactor()
ProductData. The default value is
1.0 (no factor).
isScalingApplied()public final void setScalingFactor(double scalingFactor)
ProductData.
scalingFactor - the scaling factorisScalingApplied()public final double getScalingOffset()
ProductData. The default value is
0.0 (no offset).
isScalingApplied()public final void setScalingOffset(double scalingOffset)
ProductData.
scalingOffset - the scaling offsetisScalingApplied()public final boolean isLog10Scaled()
ProductData of this band has a negative binominal distribution and
thus the common logarithm (base 10) of the values is stored in the raw data. The default value is
false.
isScalingApplied()public final void setLog10Scaled(boolean log10Scaled)
ProductData of this band has a negative binominal distribution and
thus the common logarithm (base 10) of the values is stored in the raw data.
log10Scaled - whether or not the data is logging-10 scaledisScalingApplied()public final boolean isScalingApplied()
The methods which return geophysical pixel values are all getPixels(int, int, int, int, int[]),
setPixels(int, int, int, int, int[]), readPixels(int, int, int, int, int[]) and
writePixels(int, int, int, int, int[]) methods as well as the getPixel<Type> and
setPixel<Type> methods such as getPixelFloat(int, int) * and
setPixelFloat(int, int, float).
true if a conversion is applyied to raw data samples before the are retuned.getScalingOffset(),
getScalingFactor(),
isLog10Scaled()public static boolean isValidMaskProperty(String propertyName)
propertyName - the name to test
true, if so.public boolean isNoDataValueSet()
setNoDataValue(double) or setGeophysicalNoDataValue(double) is called.
isNoDataValueUsed(),
setNoDataValue(double)public void clearNoDataValue()
isNoDataValueSet() will return false.
public boolean isNoDataValueUsed()
The no-data value is used to determine valid pixels. For more information
on valid pixels, please refer to the documentation of the isPixelValid(int, int, javax.media.jai.ROI)
method.
setNoDataValueUsed(boolean),
isNoDataValueSet()public void setNoDataValueUsed(boolean noDataValueUsed)
The no-data value is used to determine valid pixels. For more information
on valid pixels, please refer to the documentation of the isPixelValid(int, int, javax.media.jai.ROI)
method.
On property change, the method calls ProductNode.fireProductNodeChanged(String) with the property
name PROPERTY_NAME_NO_DATA_VALUE_USED.
noDataValueUsed - true, if soisNoDataValueUsed()public double getNoDataValue()
double.
Note that the value returned is NOT necessarily the same as the value returned by
getGeophysicalNoDataValue() because no scaling is applied.
The no-data value is used to determine valid pixels. For more information
on valid pixels, please refer to the documentation of the isPixelValid(int, int, javax.media.jai.ROI)
method.
The method returns 0.0, if no no-data value has been specified so far.
double in order to cover all other numeric types.setNoDataValue(double),
isNoDataValueSet()public void setNoDataValue(double noDataValue)
double.
Note that the given value is related to the "raw", un-scaled raster data.
In order to set the geophysical, scaled no-data value use the method
setGeophysicalNoDataValue(double).
The no-data value is used to determine valid pixels. For more information
on valid pixels, please refer to the documentation of the isPixelValid(int, int, javax.media.jai.ROI)
method.
On property change, the method calls ProductNode.fireProductNodeChanged(String) with the property
name PROPERTY_NAME_NO_DATA_VALUE.
noDataValue - the no-data value. It is passed as a double in order to cover all other numeric types.getNoDataValue(),
isNoDataValueSet()public double getGeophysicalNoDataValue()
getNoDataValue().
The no-data value is used to determine valid pixels. For more information
on valid pixels, please refer to the documentation of the isPixelValid(int, int, javax.media.jai.ROI)
method.
setGeophysicalNoDataValue(double)public void setGeophysicalNoDataValue(double noDataValue)
getNoDataValue().
The no-data value is used to determine valid pixels. For more information
on valid pixels, please refer to the documentation of the isPixelValid(int, int, javax.media.jai.ROI)
method.
On property change, the method calls ProductNode.fireProductNodeChanged(String) with the property
name PROPERTY_NAME_NO_DATA_VALUE.
noDataValue - the new geophysical no-data valuesetGeophysicalNoDataValue(double),
isNoDataValueSet()public String getValidPixelExpression()
isPixelValid(int, int, javax.media.jai.ROI)
method.
public void setValidPixelExpression(String validPixelExpression)
The valid-pixel expression is used to determine valid pixels. For more information
on valid pixels, please refer to the documentation of the isPixelValid(int, int, javax.media.jai.ROI)
method.
On property change, the method calls ProductNode.fireProductNodeChanged(String) with the property
name PROPERTY_NAME_VALID_PIXEL_EXPRESSION.
validPixelExpression - the valid mask expression, can be nullpublic boolean isValidMaskUsed()
isValidPixelExpressionSet() or isNoDataValueUsed() returns true.
The data-mask is used to determine valid pixels. For more information
on valid pixels, please refer to the documentation of the isPixelValid(int, int, javax.media.jai.ROI)
method.
public void resetValidMask()
public String getValidMaskExpression()
noDataValue and the
validPixelExpression properties, if any.
The method returns null, if none of these properties are set.
null.getValidPixelExpression(),
getNoDataValue()
public void updateExpression(String oldExternalName,
String newExternalName)
oldExternalName with oldExternalName. Such references most often occur
in band arithmetic expressions.
updateExpression in class ProductNodeoldExternalName - The old node name.newExternalName - The new node name.@Deprecated public abstract ProductData getSceneRasterData()
getSourceImage() instead.
null.
In oposite to the getRasterData method, this method returns raster data that has at least
getBandOutputRasterWidth()*getBandOutputRasterHeight() elements of the given data type to store the
scene's pixels.
getRasterData(),
getRasterWidth(),
getRasterHeight(),
getSceneRasterWidth(),
getSceneRasterHeight()@Deprecated public boolean hasRasterData()
RasterDataNode is loaded or elsewhere available, otherwise
false.
@Deprecated public ProductData getRasterData()
getSourceImage() or the various readPixels()
method variants to retrieve or read raster data.
null.
null if data has not been loaded@Deprecated public void setRasterData(ProductData rasterData)
setSourceImage() or the various readPixels()
method variants to set or write raster data.
Note that this method does not copy data at all. If the supplied raster data is compatible with this product raster, then simply its reference is stored. Modifications in the supplied raster data will also affect this dataset's data!
rasterData - the raster data for this datasetgetRasterData()
@Deprecated
public void loadRasterData()
throws IOException
IOException - if an I/O error occursloadRasterData(com.bc.ceres.core.ProgressMonitor)
@Deprecated
public void loadRasterData(com.bc.ceres.core.ProgressMonitor pm)
throws IOException
RasterDataNode. After this method has been called successfully,
hasRasterData() should always return true and getRasterData() should
always return a valid ProductData instance with at least getRasterWidth()*getRasterHeight()
elements (samples).
The default implementation of this method does nothing.
pm - a monitor to inform the user about progress
IOException - if an I/O error occursunloadRasterData()@Deprecated public void unloadRasterData()
RasterDataNode.
It is up to the implementation whether after this method has been called successfully, the
hasRasterData() method returns false or true.
The default implementation of this method does nothing.
loadRasterData()public void dispose()
This method should be called only if it is for sure that this object instance will never be used again. The
results of referencing an instance of this class after a call to dispose() are undefined.
Overrides of this method should always call super.dispose(); after disposing this instance.
dispose in class DataNode
public boolean isPixelValid(int x,
int y)
validMaskImage is null or
or if the bit corresponding to (x,y) is set within the returned mask image.
Note: Implementation changed by Norman (2011-08-09) in order to increase performance since
a synchronised block was used due to problem with the JAI ROI class that has been used in
the former implementation.
x - the X co-ordinate of the pixel locationy - the Y co-ordinate of the pixel location
true if the pixel is valid
ArrayIndexOutOfBoundsException - if the co-ordinates are not in boundsisPixelValid(int, int, javax.media.jai.ROI),
setNoDataValueUsed(boolean),
setNoDataValue(double),
setValidPixelExpression(String)
public int getSampleInt(int x,
int y)
int value.
Note: This method does not belong to the public API.
It has been added by Norman (2011-08-09) in order to perform performance tests.
x - pixel X coordinatey - pixel Y coordinate
public float getSampleFloat(int x,
int y)
float value.
Note: This method does not belong to the public API.
It has been added by Norman (2011-08-09) in order to perform performance tests.
x - pixel X coordinatey - pixel Y coordinate
public boolean isPixelValid(int pixelIndex)
validMaskImage is null or
or if the bit corresponding to (x,y) is set within the returned mask image.
pixelIndex - the linear pixel index in the range 0 to width * height - 1
true if the pixel is valid
ArrayIndexOutOfBoundsException - if the co-ordinates are not in boundsisPixelValid(int, int, javax.media.jai.ROI),
setNoDataValueUsed(boolean),
setNoDataValue(double),
setValidPixelExpression(String)
public boolean isPixelValid(int x,
int y,
javax.media.jai.ROI roi)
isPixelValid(int, int) method,
and secondly, if the pixel is within the ROI (if any).
x - the X co-ordinate of the pixel locationy - the Y co-ordinate of the pixel locationroi - the ROI, if null the method returns isPixelValid(int, int)
true if the pixel is valid
ArrayIndexOutOfBoundsException - if the co-ordinates are not in boundsisPixelValid(int, int),
setNoDataValueUsed(boolean),
setNoDataValue(double),
setValidPixelExpression(String)
@Deprecated
public abstract int getPixelInt(int x,
int y)
getSampleInt(int, int) instead.
x - the X co-ordinate of the pixel locationy - the Y co-ordinate of the pixel location
ArrayIndexOutOfBoundsException - if the co-ordinates are not in bounds
@Deprecated
public abstract float getPixelFloat(int x,
int y)
getSampleFloat(int, int) instead.
x - the X co-ordinate of the pixel locationy - the Y co-ordinate of the pixel location
ArrayIndexOutOfBoundsException - if the co-ordinates are not in bounds
@Deprecated
public abstract double getPixelDouble(int x,
int y)
getSampleFloat(int, int) instead.
x - the X co-ordinate of the pixel locationy - the Y co-ordinate of the pixel location
ArrayIndexOutOfBoundsException - if the co-ordinates are not in bounds
@Deprecated
public abstract void setPixelInt(int x,
int y,
int pixelValue)
x - the X co-ordinate of the pixel locationy - the Y co-ordinate of the pixel locationpixelValue - the new pixel value at (x,y)
ArrayIndexOutOfBoundsException - if the co-ordinates are not in bounds
@Deprecated
public abstract void setPixelFloat(int x,
int y,
float pixelValue)
x - the X co-ordinate of the pixel locationy - the Y co-ordinate of the pixel locationpixelValue - the new pixel value at (x,y)
ArrayIndexOutOfBoundsException - if the co-ordinates are not in bounds
@Deprecated
public abstract void setPixelDouble(int x,
int y,
double pixelValue)
x - the X co-ordinate of the pixel locationy - the Y co-ordinate of the pixel locationpixelValue - the new pixel value at (x,y)
ArrayIndexOutOfBoundsException - if the co-ordinates are not in bounds
@Deprecated
public int[] getPixels(int x,
int y,
int w,
int h,
int[] pixels)
getSourceImage() instead.
getPixels(int, int, int, int, int[], ProgressMonitor)
@Deprecated
public abstract int[] getPixels(int x,
int y,
int w,
int h,
int[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
getSourceImage() instead.
null a new one was created and returned.
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be readh - height of the pixel array to be read.pixels - integer array to be filled with datapm - a monitor to inform the user about progress
@Deprecated
public float[] getPixels(int x,
int y,
int w,
int h,
float[] pixels)
getSourceImage() instead.
getPixels(int, int, int, int, float[], ProgressMonitor)
@Deprecated
public abstract float[] getPixels(int x,
int y,
int w,
int h,
float[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
getSourceImage() instead.
null a new one is created and returned.
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be readh - height of the pixel array to be read.pixels - float array to be filled with datapm - a monitor to inform the user about progress
@Deprecated
public double[] getPixels(int x,
int y,
int w,
int h,
double[] pixels)
getSourceImage() instead.
getPixels(int, int, int, int, double[], ProgressMonitor)
@Deprecated
public abstract double[] getPixels(int x,
int y,
int w,
int h,
double[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
getSourceImage() instead.
null a new one is created and returned.
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be readh - height of the pixel array to be read.pixels - double array to be filled with datapm - a monitor to inform the user about progress
@Deprecated
public abstract void setPixels(int x,
int y,
int w,
int h,
int[] pixels)
setSourceImage() or the various readPixels()
method variants to set or write raster data.
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be writtenh - height of the pixel array to be written.pixels - integer array to be written
NullPointerException - if this band has no raster data
@Deprecated
public abstract void setPixels(int x,
int y,
int w,
int h,
float[] pixels)
setSourceImage() or the various readPixels()
method variants to set or write raster data.
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be writtenh - height of the pixel array to be written.pixels - float array to be written
NullPointerException - if this band has no raster data
@Deprecated
public abstract void setPixels(int x,
int y,
int w,
int h,
double[] pixels)
setSourceImage() or the various readPixels()
method variants to set or write raster data.
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be writtenh - height of the pixel array to be written.pixels - double array to be written
NullPointerException - if this band has no raster data
public int[] readPixels(int x,
int y,
int w,
int h,
int[] pixels)
throws IOException
IOExceptionreadPixels(int, int, int, int, int[], ProgressMonitor)
@Deprecated
public abstract int[] readPixels(int x,
int y,
int w,
int h,
int[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
getSourceImage() instead.
null a new one was created and
returned.
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be readh - height of the pixel array to be readpixels - array to be filled with datapm - a progress monitor
IOException
@Deprecated
public float[] readPixels(int x,
int y,
int w,
int h,
float[] pixels)
throws IOException
getSourceImage() instead.
IOExceptionreadPixels(int, int, int, int, float[], ProgressMonitor)
@Deprecated
public abstract float[] readPixels(int x,
int y,
int w,
int h,
float[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
getSourceImage() instead.
null a new one was created and
returned.
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be readh - height of the pixel array to be readpixels - array to be filled with datapm - a progress monitor
IOException
@Deprecated
public double[] readPixels(int x,
int y,
int w,
int h,
double[] pixels)
throws IOException
getSourceImage() instead.
IOExceptionreadPixels(int, int, int, int, double[], ProgressMonitor)
@Deprecated
public abstract double[] readPixels(int x,
int y,
int w,
int h,
double[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
getSourceImage() instead.
null a new one was created and
returned.
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be readh - height of the pixel array to be readpixels - array to be filled with datapm - a progress monitor
IOException
public void writePixels(int x,
int y,
int w,
int h,
int[] pixels)
throws IOException
IOExceptionwritePixels(int, int, int, int, int[], ProgressMonitor)
public abstract void writePixels(int x,
int y,
int w,
int h,
int[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be writtenh - height of the pixel array to be writtenpixels - array of pixels to writepm - a progress monitor
IOException
public void writePixels(int x,
int y,
int w,
int h,
float[] pixels)
throws IOException
IOExceptionwritePixels(int, int, int, int, float[], ProgressMonitor)
public abstract void writePixels(int x,
int y,
int w,
int h,
float[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be writtenh - height of the pixel array to be writtenpixels - array of pixels to writepm - a progress monitor
IOException
public void writePixels(int x,
int y,
int w,
int h,
double[] pixels)
throws IOException
IOExceptionwritePixels(int, int, int, int, double[], ProgressMonitor)
public abstract void writePixels(int x,
int y,
int w,
int h,
double[] pixels,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
x - x offset into the bandy - y offset into the bandw - width of the pixel array to be writtenh - height of the pixel array to be writtenpixels - array of pixels to writepm - a progress monitor
IOException
public boolean[] readValidMask(int x,
int y,
int w,
int h,
boolean[] validMask)
throws IOException
IOException
@Deprecated
public void readRasterDataFully()
throws IOException
getSourceImage() instead.
IOException - if an I/O error occursreadRasterDataFully(ProgressMonitor)
@Deprecated
public abstract void readRasterDataFully(com.bc.ceres.core.ProgressMonitor pm)
throws IOException
getSourceImage() instead.
After this method has been called successfully, hasRasterData() should always return
true and getRasterData() should always return a valid ProductData instance
with at least getRasterWidth()*getRasterHeight() elements (samples).
In opposite to the loadRasterData method, the readRasterDataFully method always
reloads the data of this product raster, independently of whether its has already been loaded or not.
pm - a monitor to inform the user about progress
IOException - if an I/O error occursloadRasterData(),
readRasterData(int, int, int, int, ProductData, com.bc.ceres.core.ProgressMonitor)
@Deprecated
public void readRasterData(int offsetX,
int offsetY,
int width,
int height,
ProductData rasterData)
throws IOException
getSourceImage() instead.
offsetX - the X-offset in the raster co-ordinates where reading startsoffsetY - the Y-offset in the raster co-ordinates where reading startswidth - the width of the raster data bufferheight - the height of the raster data bufferrasterData - a raster data buffer receiving the pixels to be read
IOException - if an I/O error occurs
IllegalArgumentException - if the raster is null
IllegalStateException - if this product raster was not added to a product so far, or if the product to
which this product raster belongs to, has no associated product readerProductReader.readBandRasterData(Band, int, int, int, int, ProductData, com.bc.ceres.core.ProgressMonitor)
@Deprecated
public abstract void readRasterData(int offsetX,
int offsetY,
int width,
int height,
ProductData rasterData,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
getSourceImage() instead.
readRasterData(int, int, int, int, ProductData),
but clients can additionally pass a ProgressMonitor.
offsetX - the X-offset in the raster co-ordinates where reading startsoffsetY - the Y-offset in the raster co-ordinates where reading startswidth - the width of the raster data bufferheight - the height of the raster data bufferrasterData - a raster data buffer receiving the pixels to be readpm - a monitor to inform the user about progress
IOException - if an I/O error occurs
IllegalArgumentException - if the raster is null
IllegalStateException - if this product raster was not added to a product so far, or if the product to
which this product raster belongs to, has no associated product reader
public void writeRasterDataFully()
throws IOException
IOException
public abstract void writeRasterDataFully(com.bc.ceres.core.ProgressMonitor pm)
throws IOException
pm - a monitor to inform the user about progress
IOException - if an I/O error occurs
@Deprecated
public void writeRasterData(int offsetX,
int offsetY,
int width,
int height,
ProductData rasterData)
throws IOException
setSourceImage() or the various readPixels() method variants to set or write raster data.
IOException
@Deprecated
public abstract void writeRasterData(int offsetX,
int offsetY,
int width,
int height,
ProductData rasterData,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
setSourceImage() or the various readPixels() method variants to set or write raster data.
It is important to know that this method does not change this product raster's internal state nor does it write into this product raster's internal raster.
rasterData - a raster data buffer receiving the pixels to be readoffsetX - the X-offset in raster co-ordinates where reading startsoffsetY - the Y-offset in raster co-ordinates where reading startswidth - the width of the raster data bufferheight - the height of the raster data bufferpm - a monitor to inform the user about progress
IOException - if an I/O error occurs
IllegalArgumentException - if the raster is null
IllegalStateException - if this product raster was not added to a product so far, or if the product to
which this product raster belongs to, has no associated product readerProductReader.readBandRasterData(Band, int, int, int, int, ProductData, com.bc.ceres.core.ProgressMonitor)public ProductData createCompatibleRasterData()
getRasterWidth()*getRasterHeight() elements of a compatible data type.
createCompatibleSceneRasterData()public ProductData createCompatibleSceneRasterData()
getBandOutputRasterWidth()*getBandOutputRasterHeight() elements of a compatible data type.
createCompatibleRasterData()
public ProductData createCompatibleRasterData(int width,
int height)
width*height elements of a compatible data type.
width - the width of the raster data to be createdheight - the height of the raster data to be created
createCompatibleRasterData(),
createCompatibleSceneRasterData()
@Deprecated
public boolean isCompatibleRasterData(ProductData rasterData,
int w,
int h)
rasterData - the raster dataw - the raster widthh - the raster height
true if so
@Deprecated
public void checkCompatibleRasterData(ProductData rasterData,
int w,
int h)
IllegalArgumentException if the given parameters dont specify a compatible raster.
rasterData - the raster dataw - the raster widthh - the raster heightpublic boolean hasIntPixels()
public TransectProfileData createTransectProfileData(Shape shape)
throws IOException
shape - the shape
IOException - if an I/O error occurspublic abstract void acceptVisitor(ProductVisitor visitor)
acceptVisitor in class DataNodevisitor - the visitor, must not be nullpublic ImageInfo getImageInfo()
public void setImageInfo(ImageInfo imageInfo)
imageInfo - the image info, can be null
protected void setImageInfo(ImageInfo imageInfo,
boolean change)
public void fireImageInfoChanged()
public final ImageInfo getImageInfo(com.bc.ceres.core.ProgressMonitor pm)
The method simply returns the value of ensureValidImageInfo(null, ProgressMonitor.NULL).
pm - A progress monitor.
getImageInfo(double[], ProgressMonitor)
public final ImageInfo getImageInfo(double[] histoSkipAreas,
com.bc.ceres.core.ProgressMonitor pm)
If no image information has been assigned before, the method is
called with the given parameters passed to this method.
createDefaultImageInfo(double[], com.bc.ceres.core.ProgressMonitor)
histoSkipAreas - Only used, if new image info is created (see createDefaultImageInfo(double[], com.bc.ceres.core.ProgressMonitor)
method).pm - A progress monitor.
public ImageInfo createDefaultImageInfo(double[] histoSkipAreas,
com.bc.ceres.core.ProgressMonitor pm)
An IllegalStateException is thrown in the case that this raster data node has no raster data.
histoSkipAreas - the left (at index 0) and right (at index 1) normalized areas of the raster data
histogram to be excluded when determining the value range for a linear constrast
stretching. Can be null, in this case {0.01, 0.04} resp. 5% of
the entire area is skipped.pm - a monitor to inform the user about progress
null.
public final ImageInfo createDefaultImageInfo(double[] histoSkipAreas,
Histogram histogram)
An IllegalStateException is thrown in the case that this raster data node has no raster data.
histoSkipAreas - the left (at index 0) and right (at index 1) normalized areas of the raster data
histogram to be excluded when determining the value range for a linear constrast
stretching. Can be null, in this case {0.01, 0.04} resp. 5% of
the entire area is skipped.histogram - the histogram to create the image information.
null.public ProductNodeGroup<Mask> getOverlayMaskGroup()
public BufferedImage createColorIndexedImage(com.bc.ceres.core.ProgressMonitor pm)
throws IOException
ProductUtils.createColorIndexedImage(this,
null).
pm - a monitor to inform the user about progress
IOException - if the raster data is not loaded so far and reload causes an I/O errorsetImageInfo(ImageInfo)
public BufferedImage createRgbImage(com.bc.ceres.core.ProgressMonitor pm)
throws IOException
pm - a monitor to inform the user about progress
IOException - if the raster data is not loaded so far and reload causes an I/O errorsetImageInfo(ImageInfo)
public byte[] quantizeRasterData(double newMin,
double newMax,
double gamma,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
IOException
public void quantizeRasterData(double newMin,
double newMax,
double gamma,
byte[] samples,
int offset,
int stride,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
IOException
public IndexValidator createPixelValidator(int lineOffset,
javax.media.jai.ROI roi)
throws IOException
lineOffset - the absolute line offset, zero basedroi - an optional ROI
IOException - if an I/O error occurspublic final double scale(double v)
v * scalingFactor + scalingOffset the the given input value. If the
log10Scaled property is true, the result is taken to the power of 10 after the actual
scaling.
scale in interface Scalingv - the input value
public final double scaleInverse(double v)
(v - scalingOffset) / scalingFactor the the given input value. If the
log10Scaled property is true, the common logarithm is applied to the input before the actual
scaling.
scaleInverse in interface Scalingv - the input value
public String getPixelString(int x,
int y)
x - the X co-ordinate of the pixel locationy - the Y co-ordinate of the pixel location
public boolean isSourceImageSet()
RasterDataNode.
getSourceImage(),
setSourceImage(java.awt.image.RenderedImage),
setSourceImage(com.bc.ceres.glevel.MultiLevelImage),
createSourceImage()public com.bc.ceres.glevel.MultiLevelImage getSourceImage()
RasterDataNode.
null. In the case that isSourceImageSet() returns false,
the method createSourceImage() will be called in order to set and return a valid source image.createSourceImage(),
isSourceImageSet()protected abstract RenderedImage createSourceImage()
RasterDataNode.
This shall preferably be a MultiLevelImage instance.
public void setSourceImage(RenderedImage sourceImage)
RasterDataNode.
sourceImage - The source image.
Can be null. If so, isSourceImageSet() will return false.public void setSourceImage(com.bc.ceres.glevel.MultiLevelImage sourceImage)
RasterDataNode.
sourceImage - The source image.
Can be null. If so, isSourceImageSet() will return false.public boolean isGeophysicalImageSet()
RasterDataNode.
This method belongs to preliminary API and may be removed or changed in the future.
public com.bc.ceres.glevel.MultiLevelImage getGeophysicalImage()
public boolean isValidMaskImageSet()
RasterDataNode.
public com.bc.ceres.glevel.MultiLevelImage getValidMaskImage()
RasterDataNode.
public boolean isStxSet()
public Stx getStx()
getStx(boolean, com.bc.ceres.core.ProgressMonitor)
shall be used instead.
This method belongs to preliminary API and may be removed or changed in the future.
getStx(boolean, com.bc.ceres.core.ProgressMonitor),
setStx(Stx)
public Stx getStx(boolean accurate,
com.bc.ceres.core.ProgressMonitor pm)
pm and then set.
This method belongs to preliminary API and may be removed or changed in the future.
accurate - If true, accurate statistics are computed.pm - A progress monitor which is used to compute the new statistics, if required.
public void setStx(Stx stx)
RasterDataNode's raster data.
The method fires a property change event for the property PROPERTY_NAME_STX.
This method belongs to preliminary API and may be removed or changed in the future.
stx - The statistics.
protected Stx computeStxImpl(int level,
com.bc.ceres.core.ProgressMonitor pm)
level - The resolution level.pm - A progress monitor.
public Shape getValidShape()
null, if the entire raster contains valid samples.
null.@Deprecated public ProductNodeGroup<Mask> getRoiMaskGroup()
@Deprecated
protected void processRasterData(String message,
RasterDataNode.RasterDataProcessor processor,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
SingleBandedOpImage instead.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||