[Thread Prev][Thread Next][Index]

Re: [ferret_users] Ribbon plot with levels messes up first missing value



Hi Ansley,

Thank you for your answer. You are right with your suspicion about *plot/ribbon*, I'm using ferret v6.93.
Workaround for ferret versions < 6.94 (not plotting any undefined values):

let a = { , , 10, 20, 30}
let b = {1,2,3,4,5}
let ba = if (a OR a EQ 0) then b
plot/rib/vs/sym=27/size=0.18/vlim=0:6/hlim=0:6/lev=(-inf)(0,40,10)(inf) ba,ba,a


I tried to find the relevant ferret v6.94 release notes, but "Version 6.95 Release Notes" follow directly the "Version 6.93 Release Notes" on http://ferret.pmel.noaa.gov/Ferret/documentation/release-notes.

I'll write a separate email about polymark. Thanks again!


Best wishes,
Hella




On 15/12/16 23:30, Ansley C. Manke wrote:> Hi Hella,

I see this with older versions of Ferret, but starting with v6.94, it
seems to be working correctly.  Which version of Ferret are you using?

I would be interested to see an example of the problem you were having
with polygon plots and missing data. If you use POLYGON/LINE/FILL then
missing values of the color variable should be drawn as an unfilled outline.

By the way, the syntax you used to define variable "a" is fine, but a
more convenient method for defining a constant-array variable with
missing values would be:

    let a = { , , 10, 20, 30}

-Ansley

On 12/15/2016 10:18 AM, Hella Riede wrote:
Hello ferreters,


when executing the following commands in ferret, the second missing
value in variable 'a' is plotted with the correct level color in all 3
plot commands. The first missing value is only plotted with the
correct level color (undefined, for example gray) when no levels
/lev=... are specified. If levels are specified, the first point is
given a spurious value of somewhere between -0.3E34 and -0.29E34.
Minimal working example:

let a = {-1E34, -1E34, 10, 20, 30}
let b = {1,2,3,4,5}

plot/rib/vs/sym=27/size=0.18/vlim=0:6/hlim=0:6  b,b,a
plot/rib/vs/sym=27/size=0.18/vlim=0:6/hlim=0:6/lev=(-inf)(0,40,10)(inf)
b,b,a
plot/rib/vs/sym=27/size=0.18/vlim=0:6/hlim=0:6/lev=(-inf)(-0.33E34,-0.28E34,0.1E33)(inf)
b,b,a

Figures produced with the three plot commands are attached.

I hoped to use plot/ribbon command for my data as the polymark command
cannot deal with undefined values either, at least not if they appear
as a block at the beginning of the data used to color levels. In
polymark, this shifts the time axis by several hours to incorrect
times (more complicated case, don't have a minimal working example for
this one at the moment).


Thanks in advance for directions.

Best wishes,
Hella




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

Privacy Policy | Disclaimer | Accessibility Statement