Re: How to use stScalarFieldData?

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Fri Mar 05 2010 - 10:14:10 MST

Hi Christian,

It sounds to me like the "scalar field" must be an HLU object of type
"ScalarField". HLU variables are created via the "create" statement,
which returns an Id:

http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml#HLUVariables

Hope this helps...
Rick

On Mar 5, 2010, at 5:18 AM, Christian Pause wrote:

> Hi again,
>
> I want to use the stScalarFieldData ressource in a streamline-plot.
> However stScalarFieldData is of the type NhlTInteger, and the
> reference
> guide says:
>
> "Specifies the id of a ScalarField data object. If this resource is
> set
> with a valid ScalarField object and the resource stUseScalarArray is
> set
> True, StreamlinePlot will use the scalar array data for coloring the
> streamlines. In order for StreamlinePlot to consider the ScalarField
> object valid, it must find that it has the same number of elements
> along
> each dimension as are found in the VectorField object."
>
> The scalar field I specified is valid so far, but what is that id of
> the
> field it wants?
> I only have name of the array which obviously is of the type
> character and
> not integer, so how do I get that id?
>
> Greetings
> Christian
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 5 10:14:15 2010

This archive was generated by hypermail 2.1.8 : Mon Mar 08 2010 - 12:07:42 MST