[Thread Prev][Thread Next][Index]

Re: [ferret_users] SCRIPT DOESNT SAVE THE OUTPUT



Hi
For searching the documentation, one technique is to use the "Search" box in the upper left. My favorite method is to bring up the index,
http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/index-1/index and use the browser's search to look for in this case, "palette". Here are two links:

http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/CONTOUR#_VPINDEXENTRY_127

http://ferret.pmel.noaa.gov/Ferret/documentation/users-guide/commands-reference/PALETTE#_VPINDEXENTRY_14556



On 4/8/2016 12:01 PM, afwande juliet wrote:

Where do i put the color palette command in script

On Apr 8, 2016 7:19 PM, "Ansley C. Manke" <ansley.b.manke@xxxxxxxx> wrote:
Hi,
I'd just add that using the same colors for all plots on a page, when the variables are comparable, makes a better comparison plot.  Drawing a single colorbar for the whole page also cleans up the plot nicely.  I think you were doing that.

Think too about the color palette.  The default palette isn't always the best.  Try for example, /palette=blue_green_yellow in your commands.

For more discussion about color palettes, here are a couple of FAQ's. 
How can I choose a good color palette for my plot?
Which of Ferret's color palettes best convey information to color-impaired viewers?

The second of those has several links to other information about choosing good color palettes, most particularly the article referenced in this link: http://geog.uoregon.edu/datagraphics/EOS/

-Ansley

On 4/7/2016 10:28 PM, afwande juliet wrote:
Hi All and for them support I got
I think the problem was using different color levels for differrent plots
When I change the plots to have same colorbar level, the hanging disapeears

On Thu, Apr 7, 2016 at 7:26 PM, Ansley C. Manke <ansley.b.manke@xxxxxxxx> wrote:
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 A1
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.
There 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.

-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:

my script is attached below
help 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:

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 saved
I 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    

This is strange. I have been plotting before without these hanaging error issues.

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:

Russ thanks
Now 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
I dont know why

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 A1
let 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 fill
go focean 5 white
go land 1 " " 1 
label 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:

Hi Russ
I 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 thanks
what 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



<MAM1984_ICS.jnl>






<MAM1984_ICS.jnl>







[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement