[Thread Prev][Thread Next][Index]

Re: [ferret_users] Unexpected behavior when plotting very specific data



Marco,
The bug you found seems to happen only with the combination of a variable that is all zero, and another that's all missing:
yes? let v1 = {0,0,0}
yes? let v2 = { , , }
yes? plot v1,v2  ! does not make a plot

yes? let v1 = {10,10,10}
yes? let v2 = { , , }
yes? plot v1,v2  ! Makes a plot
We do want to know about such things! 

Ansley

Marco Steinacher wrote:
Hi,

I've found a bug in Ferret. Here's the example:

--- Contents of data.dat:
2000 0.0
2010 0.0
---

--- Example script:
file/var="year,data" "test.dat"

let var1 = data[d=1]
let var2 = if data[d=1] eq -1 then data[d=1]

plot var1        ! Works
plot var2        ! Works
list var1,var2   ! Works
plot var1,var2   ! Doesn't work!
---

Plotting both variables individually works but plotting them together
does not work. Ferret simply doesn't produce any output. This error only
occurs when one variable is constant and exactly zero and the other one
is missing everywhere. I've tested it with Ferret v6.401 and v6.6.

As this is a very special case it's not a big issue, but it can break
batch processing when an output metafile is expected but not found.

Best regards,
Marco
  

[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement