Activity
An
OpenSpirit activity that outputs either an image or the bulk values from
a horizon grid. The input of the activity takes a 3D Horizon Property
OpenSpirt data key. The extent of the horizon grid that is output can
be specified on the input panel. The output type of image or bulk values
is specified on the configuration panel. If the output type is image,
there are various inputs that can be specified to customize the image
that is generated.
OpenSpirit Horizon Grid Reader Configuration Fields
Field | Global Var? | Optional? | Description |
Name | No | No | User assigned name given to activity |
Description | No | Yes | User assigned description (optional) |
Output Type | No | No | Specifies the output type. The options are: Image or Bulk Values. The default is Image. |
Color Model | No | Yes | Specifies the color model to be used when generating the image. This field is only visible when the output type is Image. The options are: Grey Scale, Red White Blue, Rainbow and Custom. The first three are predefined color models. If Custom is chosen, additional inputs will be displayed to specify the minimum color, maximum color and optional zero color. A color ramp will be created based on the HSB (Hue, Saturation and Brightness) color space that includes the color spectrum within the range specified. |
See TIBCO ActiveMatrix BusinessWorks Process Design Guide for more information about mapping and transforming input data.
The input for the activity is the following.
Input Item | Datatype | Description |
OspInput | Complex | Root element for all input elements |
DataKey | String | This is the OpenSpirit data key from the 3D Horizon Property entity (EpiInterpretation_HorizonGrid2dProperty). |
Axis1Start | Float | Optionally defines the starting index along the first axis of the grid that is output. If nothing is supplied, the first index of axis 1 of the data extent of the grid will be used. |
Axis1End | Float | Optionally defines the ending index along the first axis of the grid that is output. If nothing is supplied, the last index of axis 1 of the data extent of the grid will be used. |
Axis2Start | Float | Optionally defines the starting index along the second axis of the grid that is output. If nothing is supplied, the first index of axis 2 of the data extent will be used. |
Axis2End | Float | Optionally defines the ending index along the second axis of the grid that is output. If nothing is supplied, the last index of axis 2 of the data extent will be used. |
ColorModel | Complex | Defines the color model used when generating the image. This input is only displayed when the output type is Image. |
Factor | Float | A multiplier (0 - 1+) applied when calculating the pixel value. A value of 1 is the normal contrast and has no change on the output. The contrast decreases as fractional values less than 1 approach 0. Values greater than 1 increase the contrast. This is typically only be used when the data is generally symmetric about zero. The color model is also typically two color dominant (e.g. Grey Scale or Red White Blue). |
ReverseScale | Boolean | If true, the color ramp generated will be in reverse order. |
Symmetric | Boolean | If true, the largest amplitude value (minimum or maximum) will be used as the absolute minimum and maximum values when creating the color ramp scale. |
SimpleModelName | String | If supplied, the value would override what was specified on the configuration panel. Valid values are: grey_scale, red_white_blue or rainbow. |
Custom | Complex | Specifies the values used when creating the custom color model. If the SimpleModelName is supplied, these values are ignored. |
MinColor | OspColor | Specifies the minimum color of the spectrum to include when creating the color ramp. The spectrum will be calculated in the HSB (Hue, Saturation and Brightness) color space. |
MaxColor | OspColor | Specifies the maximum color of the spectrum to include when creating the color ramp. The spectrum will be calculated in the HSB (Hue, Saturation and Brightness) color space. |
ZeroColor | OspColor | Optionally specifies the mid-range color of the spectrum to when creating the color ramp. The spectrum will be calculated in the HSB (Hue, Saturation and Brightness) color space. |
ImageWidth | Integer | Optionally specify the width of the image that is generated. This value is ignored unless ImageHeight is also supplied. |
ImageHeight | Integer | Optionally specify the height of the image that is generated. This value is ignored unless ImageWidth is also supplied. |
The output for the activity is the following.
Output Item | Datatype | Description |
OspOutput |
Complex | The root element for all output items for the activity. |
Image | Binary | A base 64 byte array containing the image of the specified horizon grid in PNG format. This field is only visible if the output type is Image. |
BulkValues | Binary | A base 64 byte array containing the bulk values of the specified horizon grid. This field is only visible if the output type is Bulk Values. The DataType output field specifies the actual data type of the values contained in the byte array (e.g. FLOAT, INTEGER, SHORT or BYTE). The INTEGER data type indicates 4 bytes per value (high byte first), SHORT is 2 bytes per value (high byte first) and BYTE is 1 byte per value. The FLOAT data type is 4 bytes per value and the 32 bits are structured as follows: http://docs.oracle.com/javase/6/docs/api/java/lang/Float.html#floatToIntBits(float). |
PropertyName | String | The name of the horizon grid property of the supplied data key. |
HorizonName | String | The name of the parent horizon of the supplied data key. |
NumRows | Integer | The number of rows in the returned horizon grid. |
NumColumns | Integer | The number of columns in the returned horizon grid. |
Axis1Start | Integer | The first index along axis 1 of the returned horizon grid. |
Axis1End | Integer | The last index along axis 1 of the returned horizon grid. |
Axis2Start | Integer | The first index along axis 2 of the returned horizon grid. |
Axis2End | Integer | The last index along axis 2 of the returned horizon grid. |
DataType | String | Specifies the data type returned from the OpenSpirit bulk accessor (e.g. FLOAT, INTEGER, SHORT or BYTE). This value should be used to determine how to process the BulkValues output byte array. |
Extent | LineString | The minimum XY spatial bounding box represented by four points containing all the non-null data of the original horizon grid. |
The Error Output tab lists the possible exceptions that can be thrown by this activity.
Exception | Thrown When ... |
OspException msg msgCode |
The horizon grid processing
could not be successfully executed.
The msg element should contain some indication of the reason. The error code (see list of possible codes) |