Navigation: Analysis Results > Analysis Results Nodes (ARNs)

 

Analysis Results Nodes (ARNs)

 

Contact Us: fredsupport@photonengr.com

 

 

 

Description


This help topic discusses the actions that can be performed on Analysis Results Nodes (ARNs) using the GUI.  For an overview of ARNs, please refer to the Analysis Results help topic.

 

 

Creating ARNs


Each ARN is assigned a unique node number upon creation, allowing access, manipulation, and display directly from FRED's object tree or the scripting language.  Analysis Results Nodes are stored in the Analysis Results folder on the object tree (  ) and can be created in the following ways:

 

Select the "Create Analysis Results Node (ARN)" checkbox on an analysis dialog in the GUI.  A base name for the resulting ARN can be supplied in this dialog as well.

Right mouse click on the Analysis Results folder and select "Create New ARN From a File" from the list menu to open a file browser dialog.  Select one or more *.fgd or *.dat files (or use CTRL+A to select all files in the directory) to be imported as ARN.  A limit of 5,000 data files may be imported as ARN using this file browser interface.  The STOP button in FRED's status bar can be pressed to stop the data import.

Drag and drop one or more FGD or DAT files from a Windows File Explorer folder into a FRED document window.

Auto-generate or generate on request from a detector entity.

Auto-generated by a Directional Analysis Entity as part of a FREDmpc GPU raytrace.

In the scripting language, use the appropriate analysis-to-ARN command (IrradianceToARN, ScalarFieldToARN, etc.).

In the scripting language, use the generic ARN creation commands found in the FRED Commands By Usage help topic.

 

 

Saving ARNs


Analysis Results Nodes are not saved with the FRED document itself.  If ARNs are intended to be preserved, they should be saved to file outside of the FRED document.  This can be done by right mouse clicking on an ARN and selecting the "Save Data to File" option.  The resulting file has an *.fgd extension (FRED Grid Data) and can loaded back into FRED at any point using the corresponding "Create New ARN From a File" command found by right mouse clicking on the Analysis Results folder.  The FGD files saved to disk can be easily processed by other data analysis packages.

 

 

Exporting ARNs to Image and Video Formats


Analysis Results Nodes can optionally be saved to several flavors of image and video files, which can help facilitate data review or reporting outside of FRED.  The following rules apply when writing image and video files:

No axes or legend information is included in the export.

The orientation of the exported images matches the displayed image as seen in FRED's chart viewer. No data transposition is applied.

For multi-dimensional data values (complex scalar fields, complex vector fields, color image, etc.), the data quantity exported matches the default quantity displayed in FRED's chart viewer.  For example, the exported image for a Scalar Field ARN would be the field energy.

 

To export an ARN to an image or video file, right mouse click on the selected ARN(s) and choose one of the following export options:

 

to LMA file

Only applicable to 3D ARNs resulting from a 3D Box Detector entity calculation.

to BOV file

Only applicable to 3D ARNs resulting from a 3D Box Detector entity calculation.

to VTK file

Export an ARN to an open source data file format developed for the Visualization Toolkit (https://vtk.org/) that can be particularly useful when rendering volumetric datasets.  May be viewed in programs such as VisIt or ParaView, among others.

 

The following behaviors apply:

Only the first ARN in the selection is saved when using this option.

Only the active slice of a multi-slice ARN is saved when using this file format.

to FITS file

Export one or more ARNs to the Flexible Image Transport System (FITS) file format, which is widely used in scientific applications.  While many standard data analysis packages support the FITS file format, NASA maintains a list of viewers that can be used to display or manipulate FITS data files.

 

The following behaviors apply:

When multiple ARNs are selected, one FITS file will be generated in the destination directory for each selected ARN.

If an ARNs data type is multi-valued (ex. complex scalar field, color image XYZ, etc.), then the corresponding FITS file will be multi-extension, with each component of the data grid stored in its own frame of the FITS image file.

If an ARN is multi-slice, then the corresponding FITS file will be multi-extension with one frame for each cell value component of each slice in the ARN.

Your FITS viewer may require you to open multi-extension FITS files in a special mode in order to access each individual data frame.

to Image file

Export one or more ARNs to BMP, GIF, JPEG or TIFF file formats with the following controls:

 

Palette

Named color palette to be used for the output image.

ReversePalette

True or False indicating whether the colors in the palette should be reversed.

NumLevels

User-specified number of color levels.  0 = continuous.

DataRange

When set to Auto, each image has its own auto-scaling corresponding to the data range of the ARN.  When set to a custom min,max range, all images are rendered using the same data range scaling.  Providing a custom min,max range facilitates rendering multiple ARN images using the same color scaling.  Data values falling below the supplied min value will be assigned the lowest palette color. Data values falling above the supplied max value will be assigned the highest palette color.  A custom data range is supplied in the form: min,max (ex: 0, 2.5).

ImageSize

When set to Auto, each image has the same resolution as the axes of the corresponding ARN.  When a custom width,height (in pixels) is supplied, each image has the same resolution.

ImageFormat

One of BMP, GIF, JPEG or TIFF.

 

The following behaviors apply:

When a single ARN is selected, the user will designate both the name and directory location for the output image file.

When multiple ARNs are selected, images of each selected ARN will be saved in the designated folder location with file names matching the name of the corresponding ARN.

Only the active slice of a multi-slice ARN will be saved when using this file format.

 

The following quantities are exported in the image files for specific ARNs whose cell data is multi-valued:

ARN Type

Exported quantity

Scalar Field

Field Energy (U U*)

Vector Field

Sum of the X, Y and Z component Field Energies

Color Image

Y-Tristimulus component

 

to Video file

Export one or more ARNs to a single video file in the MP4 or WMV file format with the following controls:

 

Palette

Named color palette to be used for all frames of the output image.

ReversePalette

True or False indicating whether the colors in the palette should be reversed.

NumLevels

User specified number of color levels to be used in each video frame.  0 = continuous.

DataRange

When set to Auto, the min/max range is determined automatically from the data contained in the selected ARNs.  A custom data range can be supplied in the form: min,max (ex: 0, 2.5). Data values falling below the supplied min value will be assigned the lowest palette color. Data values falling above the supplied max value will be assigned the highest palette color.  All frames of the video use the same DataRange specification.

ImageSize

Specifies the height and width of the video frame images in units of pixels.  "Auto" will set the video frame resolution to match the corresponding ARN resolution subject to the rules below.  User specified resolution has the form "height,width" and is subject to the rules below.

ImageFormat

Specifies the output video file format as either MP4 or WMV.

SecondsPerImage

Specifies the duration of each video frame in seconds.

 

The following behaviors apply:

The selected ARNs (and slices of a selected multi-slice ARN) must have the same data grid resolution in order for a video file to be generated.

The quantities written to the output frame images for ARNs whose cell data is multi-valued are the same as those reported above for ARN Export to Image File.

 

Video frame ImageSize rules:

Regardless of the frame size specification mode (user supplied, or Auto), the minimum frame size in each dimension will be determined by the maximum of 200 pixels, twice the ARN pixel count, or the user-specified value. The resulting value is then rounded to the next highest even number to form the final frame size.  For example, suppose that a collection of ARNs have data grid resolutions of 101x81 pixels.  If exported to a video file with user supplied resolution of 999, 809 pixels, the final video file will have resolution 1000, 810 pixels.

 

 

Displaying ARNs


Displaying ARNs in a Chart View

2D Analysis Results Nodes can be displayed in the chart viewer by using one of the following options:

Double click on the ARN in the object tree to display the result in the chart

Right mouse click on the ARN in the object tree and select "Display in Chart"

 

The following behaviors apply when displaying ARNs in a chart view:

A statistical report for the ARN data will be printed to the output window automatically when either of these chart display options are selected.

If the selected ARN is multi-slice, the displayed data corresponds to the active slice.

When an ARN is displayed in the chart view, the chart style appropriate for its data type will be applied.

If multiple ARNs are selected on the tree at the time the chart display option is called, the resulting chart corresponds the first ARN in the selection.

 

Displaying ARNs in the 3D View (2D analysis results)

2D Analysis Results Nodes can be displayed directly in the 3D viewer by using one of the options below.  This method of displaying ARNs provides the ability to display the data from one or more ARNs directly in the context of your 3D model view, which can be particularly useful for presentations and reports or for understanding the orientation of the data with respect to the model geometry.

Right mouse click on one or more selected ARNs in the object tree and choose the "Display in Visualization View"

Right mouse click on one or more selected ARNs in the object tree and choose the "Cancel Display in Visualization View" to remove the selected ARNs from being displayed in the 3D view

          

The following behaviors apply when displaying ARNs in the 3D view:

When the visualization view option is selected, the user will be prompted with a dialog containing display options specific to the selected ARN(s) data type.

The 3D view can be auto-focused on one or more ARNs by selecting the ARNs of interest on the object tree, right mouse clicking and selecting "Fit to View" from the context menu.

When multiple ARNs are selected, the Display in Visualization View option will be greyed out unless the selected ARNs are all (a) 2D results or all 3D results, (b) the same data type (ex. Irradiance, Scalar Field, etc.), and (c) the same grid resolution.

Pursuant to the requirements above, calling Display in Visualization view on multiple selected ARNs will display the selected ARNs in the 3D view using the same settings (including the data range color scaling).

The number of pixels that can be displayed as a texture map in the 3D view is limited by the graphics capabilities of each computer.  In the event that the texture map display fails, a warning message will be printed in the output window.  FRED uses the "Safe" pixel mode setting by default (Preferences) and texture maps up to 1024 x 1024 pixels will typically be properly displayed.  Hardware accelerated modes should allow for proper display of texture maps with larger numbers of pixels.

 

The following controls are available when displaying ARN(s) in the 3D View:

 

Name

Description

Default

Component

Specifies the component (X, Y or Z) from which the specified Quantity will be extracted.

 

This option only applies to Vector Field type ARNs.

X

Quantity

Specifies the data quantity to be displayed in the 3D view.  For example, a Scalar Field ARN has six associated quantities that may be displayed; Energy, Amplitude, Signed Amplitude, Real Component, Imaginary Component and Phase.  The supported quantities vary depending on the ARN type.

 

This option only applies to Color Image, Scalar Field and Vector Field type ARNs.

Depends on ARN Type

Brightness

Image brightness normalization (relative to the default 1.0).

 

This option only applies to Color Image type ARNs.

1.0

Palette

Named color palette used for displaying color levels.

 

This option does not apply to Color Image type ARNs.

Spectrum2

ReversePalette

True or False indicating whether the color palette should be reversed.

 

This option does not apply to Color Image type ARNs.

False

NumLevels

Number of color levels used in the display (0 = continuous).

 

This option does not apply to Color Image type ARNs.

0

DataRange

Data values corresponding to the color range in the specified Palette.  A custom data range is supplied in the form: min,max (ex: 0, 2.5).  Use "Auto" for automatic.  Data values falling below the supplied min value will be assigned the lowest palette color. Data values falling above the supplied max value will be assigned the highest palette color.

 

This option does not apply to Color Image type ARNs.

Auto

Transparent

True or False indicating whether the data should be rendered with transparency in the 3D view.

False

AmbientFraction

Affects how the rendered data brightens or darkens as the 3D view is rotated.  A value of 1.0 means that the rendered image will not dim in any orientation as the 3D view is rotated.

 

This option does not apply to Color Image type ARNs.

1.0

Legend

WantLegend

True or False indicating whether a Legend colorbar should be drawn in the 3D view.

False

LegendLocation

If WantLegend=True, this option specifies the location of the Legend in the 3D view.

Right

UseCustomTitle

If WantLegend=True, this option indicates whether a custom Legend title will be used.

False

CustomTitle

If WantLegend=True AND UseCustomTitle=True, this option allows a custom string title to be provided for the Legend.

Title Text

TransparentLegend

If WantLegend=True, this option indicates whether the Legend should be drawn with some transparency in the 3D view.

False

 

 

Displaying ARNs in the 3D View (3D analysis results)

3D Analysis Results Nodes can be displayed in the visualization view using its display specific controls.

 

 

Modifying ARN Data


The data in an Analysis Results Node can be manipulated directly in the GUI by right mouse clicking on an Analysis Results Node and selecting Modify Data from the context menu.  If the ARN is multi-slice, then the modification is applied to the active slice.  The data manipulations which can be performed are:

Log10 with Relative Floor

Loc10 with Absolute Floor

Perform 2D FFT

Average along A axis

Average along B axis

Linear combination

 

Name

Description

Initial Value

Log10 with Relative Floor Controls

Floor

Sets the floor to be N orders of magnitude below the data maximum value

6

ShowFloor

When True, values below the floor are shown at the floor level.  When False, these floor values are not shown.

True

ModifyTitleAndName

When True, the ARN's title and name are changed from Name to Log(Name).

True

MakeCopy

When true, the original ARN is left unchanged and a copy of the ARN with the data modifications is added to the ARN folder on the object tree.

False

Log10 with Absolute Floor Controls

Floor

Sets the absolute minimum data value below which the log operation is not performed.

1e-6

ShowFloor

When True, values below the floor are shown at the floor level.  When False, these floor values are not shown.

True

ModifyTitleAndName

When True, the ARN's title and name are changed from Name to Log(Name).

True

MakeCopy

When true, the original ARN is left unchanged and a copy of the ARN with the data modifications is added to the ARN folder on the object tree.

False

Perform 2D FFT

A copy of the ARN with modified axes ranges and transformed data is automatically created and added to the tree.  After the FFT has been performed, the data type stored by the ARN is Complex.  When an FFT is performed on data where the dimensions are not a power of 2, the data is zero-padded to the next-highest power of 2 prior to performing the FFT. The resulting FFT's high frequency components are truncated so that the resulting chart or ARN have the same number of data points as the original data.

Average Along A Axis

For a given row along the A axis in the grid data, each cell value is replaced with the average value along its row.

Average Along B Axis

For a given row along the B axis in the grid data, each cell value is replaced with the average value along its row.

Linear Combination

When a single ARN is selected, the Linear Combination operation is a simple user-defined scale factor applied to the data in the selected ARN.

 

When multiple ARN are selected, the Linear Combination operation applies a user-defined scale factor to each ARN in the selection and then sums the scaled ARN values together into a combined result.  The data types and grid dimensions must match in order for multiple ARNs to be linearly combined together.

 

If any of the selected ARNs are multi-slice, then the scaling and summation is performed using the active slice of each multi-slice ARN.

 

Combining multiple ARNs together with a single scale factor (other than 1) can be accomplished using the two approaches below:

Method 1: Select the desired ARNs for linear combination and enter the desired scale factor in each ARN row in the linear combination dialog.

 

Method 2: Select the desired ARNs for linear combination, leaving the default unit multiplier on each ARN row and hit OK.  Select the ARN where the resulting data was stored and call the linear combination on that ARN by itself.  Apply the desired scale factor in the linear combination dialog and hit OK.

StoreResults

Specifies where the resulting data should be stored.  When "In a New ARN" is selected, then a new ARN containing the modified data is added to the ARN folder with the name, "Linear Combination N".  When "In ARN 1" is selected, then the modified data will be stored in the first ARN of the selection list, as displayed in the linear combination dialog, and the original data of the first ARN will be overwritten.

In a New ARN

Multiplier N

The scalar by which grid data in the N'th ARN of the selection will be multiplied before summation with the other scaled ARN datasets.  The Description column contains the name of the N''th ARN in the selection followed by "( [X] Title)", where X is the active slice being operated on and Title is the ARN's title.  Note that non multi-slice ARNs will show 0 for the value of X.

1

 

 

Multi-Slice ARN Tools


This section describes the GUI tools available for manipulating and managing multi-slice ARNs.

 

Combining ARNs into a Multi-Slice ARN

A multi-slice ARN can be created from 2 or more existing ARNs by first selecting the ARNs on the tree, right mouse clicking and choosing the Combine Into New Multi-Slice ARN option from the context menu.  When the "Keep Selected ARNs" sub-menu option is used, the multi-slice ARN will be created and the original ARNs will be preserved.  When the "Delete Selected ARNs" sub-menu option is used, the multi-slice ARN will be created and the original ARNs will be deleted from the Analysis Results folder.

 

 

Splitting a Multi-Slice ARN Into Individual ARNs

A multi-slice ARN can be split into individual ARNs, with one ARN corresponding to each slice of the multi-slice ARN, by right mouse clicking on the multi-slice ARN and choosing the "Split Multi-Slice ARN Into Single-Slice ARNs".  The original multi-slice ARN is preserved on the object tree and may be removed if desired.

 

 

Slice Management and Activation

The individual slices of a multi-slice ARN can be re-ordered, made the active slice, or deleted from the multi-slice ARN by using the slice manager interface.  To access the interface, right mouse click on a multi-slice ARN and choose "Manage Slices" from the context menu.  Each row in the listing corresponds to one slice of the ARN and indicates the current index position of each slice in the ARN along with the corresponding slice name.  The currently designated active slice is labeled as such in the interface.

 

By selecting one or more entries in the control, the selected slices can be re-arranged within the multi-slice ARN by using the Move Up and Move Down buttons, or they can be deleted from the multi-slice ARN entirely by using the Delete button.  When a single slice is selected, the Set As Active Slice button will become active.  Note that the modifications to the individual slices in the slice manager interface will not take effect in the FRED document until the OK or Apply buttons are pressed.

 

 

 

Copying or Moving Slices Between ARNs

When two ARNs are selected (either single ARNs or multi-slice ARNs), the Copy/Move Slices option will become active on the context menu when right mouse clicking on the selected ARNs.  Selecting this option will open the Copy/Move Slices interface, which allows for slices to be copied or moved between the two selected ARNs.  Multiple slices can be selected simultaneously, but the Move option will only be active when at least one slice remains unselected in the interface.  The names of the two ARNs are given above the slice listings in each column and the --> and <--- text indicates whether the selected slices on the left hand side will be moved/copied to the right hand side and visa versa.  The modifications to the slices in each of the two ARNs will not take effect until the OK button is pressed on the dialog.

 

 

 

Extracting Components From ARN Data


Certain analyses, such as Coherent Scalar Field, Coherent Vector Field, and Color Image, produce output data that contain multiple values per cell in the data grid.  For example, a Scalar Field calculation performed on a 2D analysis grid contains two values per cell in the analysis grid; the real and imaginary values of the complex field at each position in the grid.  From this "raw" data, which is stored in the ARN, various quantities can be computed and extracted from the raw data.  Returning to the Scalar Field example, the quantities Energy, Amplitude, Signed Amplitude, and Phase can be derived from the real and imaginary components of the complex field in each cell in the data grid.

 

If an ARN contains multiple values per cell in the data grid, the "Extract Components to New ARN" option will be active on the context menu when right mouse clicking on an ARN.  When selected, each component of the raw data and all derived component quantities will be extracted into a single multi-slice ARN.  Each slice of the ARN contains a single-valued 2D grid of data corresponding to the individual raw data components and derived quantities.  The multi-slice ARN can be further manipulated by using the multi-slice options available when right mouse clicking on the ARN.  For example, the multi-slice ARN can be split into N single 2D ARNs (each individual ARN corresponding to one slice of the original multi-slice ARN) by right mouse clicking on the multi-slice ARN and selecting the "Split Multi-Slice ARN Into Single-Slice ARNs" option.

 

Note that if multiple ARNs are selected on the tree, the Extract Components to New ARN" will be available as long as all of the selected ARNs have data with multiple values per cell (otherwise the option will be unavailable).  In this case, each of the selected ARNs will have their components extracted into corresponding multi-slice ARNs.

 

When components and associated quantities are extracted from an ARN with multiple values per cell, the association with the original raw data is lost (ex. extracted 2D Phase data is no longer linked to the original complex field data).  A consequence of this dissociation is that when the extracted quantity is displayed in a chart window, certain data manipulation operations normally available in the chart context with the original dataset will not be available.  If, for example, extracted Phase data is displayed in a chart window, the Decompose Wavefront option will not be available because the wavefront decomposition algorithm requires the underlying complex field data.

 

The procedure for extracting components and individual quantities from an ARN with multiple values per cell into a set of individual 2D ARNs is shown in the sequence below.

 

1. Right mouse click on the ARN and select "Extract Components into new ARN" from the context menu

 

2. Right mouse click on the resulting multi-slice ARN and select, "Split Multi-Slice ARN Into Single-Slice ARNs" from the context menu

 

3.  Each of the resulting 2D ARNs represent the raw data components of the original ARN (Real and Imaginary complex field values in this example) and their derived quantities (Energy, Amplitude, Signed Amplitude and Phase in this example).

 

 

 

Reporting ARN Statistics


A statistical summary of the data contained in an ARN (total power, average irradiance, min/max values, etc.) can be reported to the output window by right mouse clicking on an ARN and selecting the Statistics Report option from the context menu.  If multiple ARNs are selected, the Statistics Report is printed to the output window for each of the selected ARNs.  If a selected ARN is multi-slice, the Statistics Report is only printed for the active slice.

 

The example below is shown for Irradiance but the specific statistical information reported will depend on the type of calculation that the ARN represents.

 

Note: The statistics data is a duplicate of the information that FRED prints to the output window when you use the GUI to request an analysis. Datasets which include multiple different quantities (ex. scalar field, vector field, etc.), will have statistics report output that corresponds to the quantity that would be shown by the GUI analysis call. For example, when the Scalar Field calculation is called in the GUI, the output window data corresponds to the Field Energy quantity (other quantities available for Scalar Field are amplitude, signed amplitude, real values, imaginary values, phase and wavefront). The statistics report for a Scalar Field type ARN would also report data for the Field Energy quantity.

 

 

 

ARN Scripting Commands


The ARN Scripting Commands can be found in the FRED Commands by Usage help topic.

 

 

 

Related Topics


 FRED Script Command Listing 

 

 

 

 

 

Copyright © Photon Engineering, LLC