[Thread Prev][Thread Next][Index]
Re: Polymark go script won't work for me
Hi Glen,
A "feature" of the current polymark script is that it only works properly as an
overlay on a 2D plot (typically a map).
Explanation: The shapes to be plotted (circles, stars, etc.) will be distorted
if they are not aspect-corrected and scaled according to the axis ranges. The
script uses $xaxis_max,$xaxis_min, etc. to determine the already-present axis
scaling. These symbols are defined automatically by CONTOUR and other 2D
commands, but they are not presently defined by 1D plotting commands.
Work around:
Define the necessary symbols manually, before issuing the GO polymark command
define symbol xaxis_max 6
define symbol xaxis_min 0
define symbol yaxis_max 8
define symbol yaxis_min 1
! and if necessary
define symbol ppl$xlen 8
define symbol ppl$ylen 6
Thanks for pointing this out. We'll fix the omission in the next release.
- steve
==========================================
Glenn Carver wrote:
> I'm having some trouble getting the GO polymark script to run for me.
>
> I have some point data in a 1D array (2500 pts) with 1D arrays lon and lat
> to locate these points. When I follow the example in the manual and do:
>
> GO polymark polygon/lev=(0,100,10) lon lat sinl circle
>
> I get:
>
> **ERROR: command syntax: (( )-( ))/6.000
> ( before ) is illegal
> DEFINE VARIABLE/QUIET PLMyscale = (( )-( ))/6.000
> Command file, command group, or REPEAT execution aborted
>
> This appears to be coming from the following lines in the polymark.jnl
>
> LET/QUIET PLMxscale = ((($xaxis_max))-(($xaxis_min)))/($ppl$xlen)
> LET/QUIET PLMyscale = ((($yaxis_max))-(($yaxis_min)))/($ppl$ylen)
>
> Presumably xaxix_max/min are some kind of limits for the viewport. However,
> I can't find any mention of them in the ferret manual. There's a refence to
> PPLUS commands XAXIS* in chapter six, but no specific mention of these
> variables.
>
> It's not obvious to me what I need to do in order that these variables are
> set. I have got a grid and region defined. What else do I need to do?
>
> Thanks
> Glenn
>
> ----
> Dr. Glenn Carver, Senior Research Associate,
> Centre for Atmospheric Science, Chemistry Dept., Cambridge University, UK
> mailto:Glenn.Carver@atm.ch.cam.ac.uk http://www.atm.ch.cam.ac.uk/~glenn/
>
> "I never think of the future, it comes soon enough"
> - Albert Einstein
--
Steve Hankin
NOAA/PMEL, 7600 Sand Point Way NE, Seattle, WA 98115-0070
ph. (206) 526-6080 -- FAX (206) 526-6744
[Thread Prev][Thread Next][Index]
Dept of Commerce /
NOAA /
OAR /
PMEL /
TMAP
Contact Us | Privacy Policy | Disclaimer | Accessibility Statement