Re: pollutants distribution over traffic map

From: Dave Allured - NOAA Affiliate <dave.allured_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 09 2013 - 11:25:40 MDT

Hi Mary.

Your current example shapefile_12 misses some of the requested highway
segments. Attached is a corrected script. Please consider using this
version on the example website. Compare your example plot
the corrected version:

[image: Inline image 1]

The problem is that this particular highway shape file contains some
complex entries in the feature_names, for example "I- 5, US 30". You need
to add a little extra string handling code to adapt to these complex name


On Tue, Apr 9, 2013 at 9:12 AM, Mary Haley <> wrote:

> Hi folks,
> I updated the example to add a simple text legend. I kept wondering which
> highway that little brown line was. :-)
> If you need to query a shapefile string variable in order to determine
> whether to draw a certain feature (for example to draw only highways that
> start with "I-"), then you can use the str_match_ind function (see also the
> other str_xxxx functions for more string processing).
> --Mary
> On Apr 8, 2013, at 7:57 PM, Jim Means wrote:
> Mary Haley was kind enough to just create an example that showed how to
> plot highways using a shapefile from NOAA:
> It's the last example on the page, shapefiles_12.ncl. I used code from
> that example to overlay radar data on a highway map, that sounds somewhat
> similar to what you're doing.
> Jim
> On 4/9/2013 00:55, Luo, Chao wrote:
> Hi,
> I am trying to make plot for visualization of local pollutants
> distribution overlap on main highways, and was wondering if NCL has such
> function, which can be used to do it.
> Very appreciate any suggestion and help!
> cl

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:

Received on Tue Apr 9 11:26:03 2013

This archive was generated by hypermail 2.1.8 : Mon Apr 15 2013 - 20:12:25 MDT