Re: How to use stScalarFieldData?

From: Christian Pause <cpause_at_nyahnyahspammersnyahnyah>
Date: Mon Mar 08 2010 - 04:34:39 MST

Hi Mary,

yes, this is exactly what I'm looking for, thank you!

I'm getting one error though that says:
spread_colors: invalid plot: defaulting

This appears both in my script and the test scripts you sent me.

Christian

> Hi Christian,
>
> This is a case where we don't have any examples that use this special
> resource.
>
> As Rick pointed out, you can go a little deeper than the gsn_xxx
> codes to get this
> to work.
>
> It made me realize that we have the gsn_xxx_vector_scalar_xxxx
> functions, but
> no corresponding gsn_xxx_streamline_scalar_xxx functions.
>
> I don't have time right now to do the full gsn_csm_xxxx version of
> these routines,
> but I was able to quickly create gsn_streamline_scalar and
> gsn_streamline_scalar_map,
> if you want to give these a try. Internally, they use
> stScalarFieldData and set
> stUseScalarArray to True, causing the streamlines to be colored by
> the given
> scalar field.
>
> I'm attaching the code (streamline_scalar.ncl), two test scripts
> (stream_test1.ncl and
> stream_test2.ncl), and a sample data file (uvtest.nc).
>
> Let me know if this is not what you want.
>
> --Mary

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Mar 8 04:34:45 2010

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