|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.esa.beam.framework.dataop.barithm.BandArithmetic
public class BandArithmetic
Provides band arithmetic utility methods.
| Nested Class Summary | |
|---|---|
static interface |
BandArithmetic.NamespaceExtender
|
static interface |
BandArithmetic.ProductPrefixProvider
|
| Field Summary | |
|---|---|
static String |
PIXEL_X_NAME
|
static String |
PIXEL_Y_NAME
|
| Method Summary | |
|---|---|
static void |
addNamespaceExtender(BandArithmetic.NamespaceExtender ne)
|
static int |
computeBand(String expression,
String validMaskExpression,
Product[] sourceProducts,
int defaultProductIndex,
boolean checkInvalids,
boolean noDataValueUsed,
double noDataValue,
int offsetX,
int offsetY,
int width,
int height,
ProductData targetRasterData,
Scaling scaling,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. Since BEAM 4.10. Use VirtualBand or VirtualBandOpImage. |
static int |
computeBand(Term term,
Term validMaskTerm,
boolean checkInvalids,
boolean noDataValueUsed,
double noDataValue,
int offsetX,
int offsetY,
int width,
int height,
ProductData targetRasterData,
Scaling scaling,
com.bc.ceres.core.ProgressMonitor pm)
Deprecated. Since BEAM 4.10. Use VirtualBand or VirtualBandOpImage. |
static WritableNamespace |
createDefaultNamespace(Product[] products,
int defaultProductIndex)
Creates a default namespace for the product(s) given in an array. |
static WritableNamespace |
createDefaultNamespace(Product[] products,
int defaultProductIndex,
BandArithmetic.ProductPrefixProvider prefixProvider)
Creates a default namespace for the product(s) given in an array. |
static String |
createExternalName(String name)
Create an external name from the given name. |
static void |
deregisterFunction(Function f)
De-registers an existing function |
static void |
deregisterSymbol(Symbol s)
De-registers an existing symbol |
static String |
getProductNodeNamePrefix(Product product)
Gets a symbol name prefix for the names of bands, tie point grids, flags, etc. of the given product. |
static RasterDataSymbol[] |
getRefRasterDataSymbols(Term term)
Utility method which returns all raster data symbols references in a given term. |
static RasterDataSymbol[] |
getRefRasterDataSymbols(Term[] terms)
Utility method which returns all raster data symbols references in a given term array. |
static RasterDataNode[] |
getRefRasters(RasterDataSymbol[] rasterDataSymbols)
Utility method which returns all raster data nodes referenced in a given array of raster data symbols. |
static RasterDataNode[] |
getRefRasters(String expression,
Product... products)
|
static RasterDataNode[] |
getRefRasters(String expression,
Product[] products,
int defaultProductNamePrefix)
|
static String |
getValidMaskExpression(String expression,
Product[] products,
int defaultProductIndex,
String validMaskExpression)
|
static Term |
parseExpression(String expression,
Product[] products,
int defaultProductIndex)
Parses the given expression. |
static void |
registerFunction(Function f)
Registers a new function |
static void |
registerSymbol(Symbol s)
Registers a new symbol |
static void |
removeNamespaceExtender(BandArithmetic.NamespaceExtender ne)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PIXEL_X_NAME
public static final String PIXEL_Y_NAME
| Method Detail |
|---|
public static void addNamespaceExtender(BandArithmetic.NamespaceExtender ne)
public static void removeNamespaceExtender(BandArithmetic.NamespaceExtender ne)
public static void registerSymbol(Symbol s)
s - the symbolpublic static void deregisterSymbol(Symbol s)
s - the symbolpublic static void registerFunction(Function f)
f - the functionpublic static void deregisterFunction(Function f)
f - the function
public static Term parseExpression(String expression,
Product[] products,
int defaultProductIndex)
throws ParseException
expression - the expressionproducts - the array of input productsdefaultProductIndex - the index of the product for which also symbols without the
product prefix $ref-no are registered in the namespace
ParseException - if a parse error occurs
public static WritableNamespace createDefaultNamespace(Product[] products,
int defaultProductIndex)
products - the array of input productsdefaultProductIndex - the index of the product for which also symbols without the
product prefix $ref-no are registered in the namespace
null
public static WritableNamespace createDefaultNamespace(Product[] products,
int defaultProductIndex,
BandArithmetic.ProductPrefixProvider prefixProvider)
products - the array of input productsdefaultProductIndex - the index of the product for which also symbols without the
product prefix $ref-no are registered in the namespaceprefixProvider - a product prefix provider
null
@Deprecated
public static int computeBand(String expression,
String validMaskExpression,
Product[] sourceProducts,
int defaultProductIndex,
boolean checkInvalids,
boolean noDataValueUsed,
double noDataValue,
int offsetX,
int offsetY,
int width,
int height,
ProductData targetRasterData,
Scaling scaling,
com.bc.ceres.core.ProgressMonitor pm)
throws ParseException,
IOException
VirtualBand or VirtualBandOpImage.
ParseException
IOException
@Deprecated
public static int computeBand(Term term,
Term validMaskTerm,
boolean checkInvalids,
boolean noDataValueUsed,
double noDataValue,
int offsetX,
int offsetY,
int width,
int height,
ProductData targetRasterData,
Scaling scaling,
com.bc.ceres.core.ProgressMonitor pm)
throws IOException
VirtualBand or VirtualBandOpImage.
IOException
public static String getValidMaskExpression(String expression,
Product[] products,
int defaultProductIndex,
String validMaskExpression)
throws ParseException
ParseException
public static RasterDataNode[] getRefRasters(String expression,
Product... products)
throws ParseException
ParseException
public static RasterDataNode[] getRefRasters(String expression,
Product[] products,
int defaultProductNamePrefix)
throws ParseException
ParseExceptionpublic static RasterDataNode[] getRefRasters(RasterDataSymbol[] rasterDataSymbols)
rasterDataSymbols argument can contain multiple references to the same raster data node,
e.g. if multilple SingleFlagSymbols refer to the same raster.
rasterDataSymbols - the array to be analysed
null but may be emptypublic static RasterDataSymbol[] getRefRasterDataSymbols(Term term)
term - the term to be analysed
null but may be emptypublic static RasterDataSymbol[] getRefRasterDataSymbols(Term[] terms)
terms - the term array to be analysed
null but may be emptypublic static String createExternalName(String name)
The method simply delgates to Tokenizer.createExternalName(String).
name - the name
public static String getProductNodeNamePrefix(Product product)
"$refNo." where refNo is the product's reference
number returned by Product.getRefNo().
product - the product, must not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||