Re: pollutants distribution over traffic map

From: Luo, Chao <chao.luo_at_nyahnyahspammersnyahnyah>
Date: Tue Apr 09 2013 - 12:58:46 MDT

Dave,

I missed the space between "I-" and "75". Your script works.

Thanks,

cl

----- Original Message -----

From: "Dave Allured - NOAA Affiliate" <dave.allured@noaa.gov>
To: "Chao Luo" <chao.luo@eas.gatech.edu>
Cc: ncl-talk@ucar.edu
Sent: Tuesday, April 9, 2013 11:39:13 AM
Subject: Re: pollutants distribution over traffic map

CL,

Please insert exactly one space between "I-" and "75". The string match function requires an exact character match, and those strings in the highway shape file are peculiar.

I get all three requested highways with my version "shapefiles_12b.ncl", which is attached:

Inline image 1

--Dave

On Tue, Apr 9, 2013 at 12:32 PM, Luo, Chao < chao.luo@eas.gatech.edu > wrote:

Hi Adam,

I did something wrong in last email. I tried your revised shapefiles_12.ncl by changing highways to I-75,I-85
highways = (/"I-75","I- 85","I- 285"/). But the script only draws I-85 and I-285, and didn't draw I-75. I am attaching the plot. Please check it.

Thanks much,

cl

----- Original Message -----
From: "Adam Phillips" < asphilli@ucar.edu >
To: ncl-talk@ucar.edu
Sent: Tuesday, April 9, 2013 11:20:52 AM
Subject: Re: pollutants distribution over traffic map

Hi CL,
My apologies, I missed your previous email saying you tried switching
the interstates to Georgia interstates...
Adam

On 4/9/13 12:15 PM, Adam Phillips wrote:
> Hi CL,
> Did you modify Dave's script to specify an interstate that is in
> Georgia, say I-85 or I-75?
> highways = (/"I-75","I-85","I-20"/)
> Adam
>
> On 4/9/13 12:08 PM, Luo, Chao wrote:
>> Dave,
>>
>> I just try your version in Georgia area. It's exactly same as last
>> one I attached. The script only draws highways outside of GA boundary.
>>
>> Thanks,
>>
>> cl
>>
>> ------------------------------------------------------------------------
>> *From: *"Dave Allured - NOAA Affiliate" < dave.allured@noaa.gov >
>> *To: *"Chao Luo" < chao.luo@eas.gatech.edu >
>> *Cc: * ncl-talk@ucar.edu
>> *Sent: *Tuesday, April 9, 2013 10:54:20 AM
>> *Subject: *Re: [ncl-talk] pollutants distribution over traffic map
>>
>> I previously forgot to attach my updated version of shapefile_12.ncl.
>> It is now attached to this message. Sorry for the confusion.
>>
>> CL, would you mind giving this version a try for your Georgia area?
>> Thank you.
>>
>> --Dave
>>
>> On Tue, Apr 9, 2013 at 11:48 AM, Luo, Chao < chao.luo@eas.gatech.edu
>> <mailto: chao.luo@eas.gatech.edu >> wrote:
>>
>> Hi,
>>
>> I just test shapefile_12.ncl by only changing highway to I-75,
>> I-85, I-285 and zoom in GA. It seems the script didn't draw
>> highway inside of GA boundary, only draws highway out of GA
>> boundary. I am attaching the test plot. Very appreciate your help!
>>
>> cl
>>
>> ----- Original Message -----
>> From: "Dave Allured - NOAA Affiliate" < dave.allured@noaa.gov
>> <mailto: dave.allured@noaa.gov >>
>> To: ncl-talk@ucar.edu <mailto: ncl-talk@ucar.edu >
>> Sent: Tuesday, April 9, 2013 10:25:40 AM
>> Subject: Re: pollutants distribution over traffic map
>>
>> 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
>> here< http://www.ncl.ucar.edu/Applications/Images/shapefiles_12_lg.png >
>> to
>> 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
>> strings.
>>
>> --Dave
>>
>> On Tue, Apr 9, 2013 at 9:12 AM, Mary Haley < haley@ucar.edu
>> <mailto: haley@ucar.edu >> 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:
>> >
>> > http://www.ncl.ucar.edu/Applications/shapefiles.shtml
>> >
>> > 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:
>> 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

_______________________________________________
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

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Apr 9 12:59:08 2013

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