[Go to Previous] [Go to Next]


Derived Data

McIDAS-V uses the formula mechanism to automatically create "derived" quantities based on the fields in a particular data source. When the data source is read in, the list of derived quantities is evaluated against the list of variables in the data. Users can define their own derived quantities by:

See the Formulas section for an overview of creating McIDAS-V formulas.

To create a formula, select the Tools->Formulas->Create Formula menu item in the Main Display window. This brings up the Formula Editor dialog box used to define a formula:

Image 1: Settings Tab of the Formula Editor Dialog
Image 1: Settings Tab of the Formula Editor Dialog
Properties

The Derived tab in the Formula Editor sets the bindings between formula parameters and fields/aliases.

Image 2: Derived Tab of the Formula Editor Dialog
Image 2: Derived Tab of the Formula Editor Dialog
Properties

The parameters to be bound are denoted by operands D1, D2, D3, etc in the formula itself. Since these D* parameters are defined as TEMP, U, and V, McIDAS-V will automatically pull those fields from the data and evaluate the formula without requiring any user input. If you need user input, you can use other field names and the user will be prompted to supply those fields (e.g. the NDVI formula on the Formulas page would require the user to select the fields for NIR and R).

You can define the bindings for the operands using parameter groups or by specifying the parameters to use. Right clicking in the Parameter input field will pop up a menu that allows you to select system parameter aliases from fields loaded into McIDAS-V already.

Categories specify the types of data that are allowed in this formula. For example, in the image above, specifying a category of GRID-3D-* will tell McIDAS-V to only look at the 3D fields of TEMP, U, and V included with the data, not the 2D fields. Access the list by right clicking in the Categories input fields.

You can define specific output categories if the type of the data that the formula creates is different from the categories that the input operands require. In general, the output categories will be the same as the input categories. In the image above, if TEMP, U, and V had a category of GRID-3D-*, McIDAS-V will treat the field as a 3D grid. If you wish to treat this field as a 2D grid, clicking Define Output Categories button allows for setting a category of GRID-2D-*. For more information on data categories, see the Formulas section.

To save the formula, click Add Formula button. A new entry appears under Formulas in the Fields panel of the Field Selector. If you want to apply the formula to an existing data source, you need to reload that data source. Right click on the name of the data source in the Data Sources panel of the Field Selector and select Reload Data.


[Go to Previous] [Go to Next]