[Thread Prev][Thread Next][Index]

Re: setting regions for drawing polygons



Nothing like answering your own question.  8-)

I neglected to mention that sigma is actually sigma[i=1:2562,k=1:40,l=1:400].

If I set the region for k by set reg/k=1 and then call polymark, it doesn't work.

Instead if I don't specify a region for k and then do:
  polymark poly/key lon lat sigma[k=1] circle

it works!  Quite what difference specifying the region this way makes I don't understand.

 Glenn


On 2002.02.07 16:28 Glenn Carver wrote:
> 	
> Is it possible to use a region with the polymark script (or just the polygon command)?
> 
> I have a dataset which has three arrays, lon[i=1:2562], lat[i=1:2562] and a value to be plotted at those coords, sigma[i=1:2562]. I want to plot a marker at each (lon,lat) point coloured according to the values in sigma. Polymark.jnl does the job fine for the full lat & long range. But I can't get it or polygon to work if I only want to plot markers over a region.
> 
> Unfortunately, although the sequence of points is ordered in some manner I can't simply select a subset of the data. Ideally what I need to do is use set region/x=200:250/y=-30:0 but this doesn't work. I get an error that the number of polygons does not match the data.
> 
> Is there a way around this?
> 
> Thanks
>            Glenn
> 
>  
> -- 
> 
> Dr. Glenn Carver, Centre for Atmospheric Science, Univ. of Cambridge,
> Chemistry Dept., Lensfield Road, Cambridge, CB2 1EW, UK.
> 
> mailto:Glenn.Carver@atm.ch.cam.ac.uk  http://www.atm.ch.cam.ac.uk/~glenn/
> Phone: +44 (1223) 763827      ** please note new numbers **
> Fax:   +44 (1223) 763823
> 
> 
-- 

Dr. Glenn Carver, Centre for Atmospheric Science, Univ. of Cambridge,
Chemistry Dept., Lensfield Road, Cambridge, CB2 1EW, UK.

mailto:Glenn.Carver@atm.ch.cam.ac.uk  http://www.atm.ch.cam.ac.uk/~glenn/
Phone: +44 (1223) 763827      ** please note new numbers **
Fax:   +44 (1223) 763823



[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement