Hi,
I think that the odd colors are due to the PPL SHASET RESET. That command resets the list of colors on the whole page, so it is NOT always safe to put it in after every plot when the color scale is changing.
You can do this: Issue the PPL SHASET RESET command after each plot which will have the same colors repeated in a subsequent viewport. Restarting the list of color definitions when they are going to be redefined in the same way in the next plot doesn't lose anything. So if you specify the same color levels and palette on the first three viewports, it's fine to reset after the first two are drawn.
Showing just the viewport and FILL commands from your script for clarity,
SET VIEWPORT A1There was a bug with SHAKEY in combination with and (inf) levels, but that was fixed a number of years ago; if anyone has an example where it is causing Ferret to hang or crash please report it.
fill /nolabel/nokey/level=(0,1100,30)(inf) WRF_Mar
ppl shaset reset
SET VIEWPORT A2
fill /nolabel/nokey/level=(0,1100,30)(inf) WRF_Apr
ppl shaset reset
SET VIEWPORT A3
fill /nolabel/nokey/level=(0,1100,30)(inf) WRF_May
SET VIEWPORT A4
fill /nolabel/nokey/level=(0,1800,250)(inf) WRF_MAM
!!! no further PPL SHASET RESET commands from here on.
-Ansley
On 4/7/2016 5:11 AM, afwande juliet wrote:
comment out the line with ppl shakey in it (PPL SHAKEY 1, 0, 0.15, 1, 3, , -8, 4, 0.60, 0.85)gives this bad figure see attached especial for first 3 plots and then Key is not what I want
On Thu, Apr 7, 2016 at 1:25 PM, Young, Paul <paul.j.young@xxxxxxxxxxxxxxx> wrote:
Last email on this….
Sorry, I meant keep in "ppl shaset reset” (as per before) and comment out the line with ppl shakey in it (PPL SHAKEY 1, 0, 0.15, 1, 3, , -8, 4, 0.60, 0.85)
I think it’s that command that is causing everything to hang.
On 7 Apr 2016, at 11:20, afwande juliet <afwandej965@xxxxxxxxx> wrote:
<MAM1984_ICS.jnl>my script is attached belowhelp me see where the error is
On Thu, Apr 7, 2016 at 1:18 PM, Young, Paul <paul.j.young@xxxxxxxxxxxxxxx> wrote:
I’d suggest keep playing with ppl shaset reset (or try it without that command). Otherwise, I’m out of ideas.
On 7 Apr 2016, at 11:17, afwande juliet <afwandej965@xxxxxxxxx> wrote:
This is strange. I have been plotting before without these hanaging error issues.thanks Its strange error; still it has not solved the hanging; it has only increased the color scale but the plot still hnags not being savedI am using Ubuntu Ferett v6.93
NOAA/PMEL TMAP
FERRET v6.93
Linux 2.6.32-504.el6.x86_64 64-bit - 11/13/14
7-Apr-16 13:14
On Thu, Apr 7, 2016 at 1:07 PM, Young, Paul <paul.j.young@xxxxxxxxxxxxxxx> wrote:
I guess you’re typing “set mode meta” and “can mode meta” before and after your script? (This creates a files called metafile.plt, which you convert to .ps with Fprint)….?
The hanging may have something to do with the call to ppl shakey. There is a long-standing issue where this fails for some scripts (why? who knows!). On a Mac, I find this is is when I ask it to label each increment with no decimal places (“1” and “(-0)” for the 4th and 5th arguments).
It’s not an ideal solution, but I would suggest experimenting with your ppl shakey call.
E.g. replace
PPL SHAKEY 1, 0, 0.15, 0, 3, 11, -8, 4, 0.60, 0.85
with
PPL SHAKEY 1, 0, 0.15, 1, 3, , -8, 4, 0.60, 0.85
Paul (not Russ!)
On 7 Apr 2016, at 10:50, afwande juliet <afwandej965@xxxxxxxxx> wrote:
I dont know whyRuss thanksNow the warning of PPL disappears but still no output as in it cant still save the output. it still hangs at the end of script instaed
On Thu, Apr 7, 2016 at 12:38 PM, Young, Paul <paul.j.young@xxxxxxxxxxxxxxx> wrote:
After each of your plots, you should type ppl shaset reset. (This is overkill, but it will work).
E.g., from you script:
SET VIEWPORT A1let WRF_Mar=Rain1984_March[d=1,x=28E:50E,y=12S:6N]fill /nolabel/nokey WRF_Mar!fill /nolabel/nokey/level=(0,1100,30)(inf) WRF_Mar!ppl fillgo focean 5 whitego land 1 " " 1label 38,6.6,0,0,0.19 @as Simulated Rain(Mar)ppl shaset reset !add this line
On 7 Apr 2016, at 10:08, afwande juliet <afwandej965@xxxxxxxxx> wrote:
<MAM1984_ICS.jnl>Hi RussI still get warning like below . I have attached my script kindly check
PPL warning: You're attempting to use more colors than are available.
Using PPL SHASET RESET to re-use protected colors may help.
go focean 5 white
PPL warning: You're attempting to use more colors than are available.
Using PPL SHASET RESET to re-use protected colors may help.
On Thu, Apr 7, 2016 at 12:00 PM, afwande juliet <afwandej965@xxxxxxxxx> wrote:
Hi Russ thankswhat do you mean by partial output
On Thu, Apr 7, 2016 at 10:55 AM, Russ Fiedler <russell.fiedler@xxxxxxxx> wrote:
Hi,
The warning that you are getting is telling you that you have run out of colours (probably because you have done lots of fill/shade plots on the current page). It's likely the problem lies elsewhere in the script.
Issue the command
PPL SHASET RESET
before you do your precipitation plot to clear things out.
This might be why you get a hang too. Can you save partial output before the the plot in viewport C4?
Russ
On 07/04/16 17:07, afwande juliet wrote:
Hi ferret Users
When I launch ferret as ferret in terminal, the plots are made correctly but the they are not being saved; the scripts hangs at the end instead of saving the output
But when I launch as ferret -gif
the ploting is done at the background and saved well but the scale is wrong. Below is part of the script
SET VIEWPORT C4
let GPCC=precip[d=11,x=28E:50E,y=12S:6N,l=84]
fill/set_up/nolabel/level=(0,500,30)(inf) GPCC
!fill/set_up/nolabel GPCC
PPL SHAKEY 1, 0, 0.15, 0, 3, 11, -8, 4, 0.60, 0.85
PPL fill
PPL warning: You're attempting to use more colors than are available.
Using PPL SHASET RESET to re-use protected colors may help.
go focean 5 white
PPL warning: You're attempting to use more colors than are available.
Using PPL SHASET RESET to re-use protected colors may help.
go land 1 " " 1
label 38,6.6,0,0,0.19 @as GPCC-OND
frame/file=OND1984_CTL.gif