PyNGL Home > Functions > Array query

Ngl.get_MDfloat_array

Retrieves the value of a resource that uses a multi-dimensional float array.

Prototype

farr = Ngl.get_MDfloat_array(plotid, resource_name)

Arguments

plotid

The identifier returned from Ngl.open_wks, or any PyNGL function that returns a PlotId.

resource_name

The name of the resource whose value you want to retrieve.

Return value

farr

A NumPy array having elements of type 'float'.

Description

This function retrieves a multi-dimensioned array that is the value of a specified resource associated with a plot.

The first argument is a PlotId and the second argument is the resource whose value you want to retrieve. The function returns a NumPy array of elements of type 'float' containing the current value of the specified resource.

See Also

Ngl.get_MDinteger_array, Ngl.get_float, Ngl.get_float_array, Ngl.get_integer, Ngl.get_integer_array, Ngl.get_string, Ngl.get_string_array

Examples

See color2.py.