Method ToDistanceGrid
| Edit this page View SourceToDistanceGrid(ChannelGrid, string)
Creates a new DistanceGrid from the distance data stored in a specified channel of a ChannelGrid.
Declaration
public static DistanceGrid ToDistanceGrid(this ChannelGrid channelGrid, string channelName)
Parameters
| Type | Name | Description |
|---|---|---|
| ChannelGrid | channelGrid | The ChannelGrid that contains the distance data in one of its channels. This grid will not be modified by this operation. |
| string | channelName | The name of the channel in the ChannelGrid that contains the distance data to be transferred to the new DistanceGrid. This channel must exist and contain data of type float for this operation to succeed. |
Returns
| Type | Description |
|---|---|
| DistanceGrid | A new DistanceGrid that has been populated with the distance data from the specified channel of the ChannelGrid. The metadata of the new DistanceGrid will be derived from the metadata of the ChannelGrid. |