[Thread Prev][Thread Next][Index]

Re: [ferret_users] **ERROR: inconsistent sizes of data regions: can't label X axis of C



Hello Ansley and Ryo,

Thank you for getting back to me - the script works perfectly now that I have the lvi in the grave-accent syntax!

Becki



On Mar 30, 2018, at 9:41 AM, Ansley C. Manke <ansley.b.manke@xxxxxxxx> wrote:

Hi Ryo,

It seems to be a case of when does Ferret know things as it's working through a set of expressions and operations.  In your example, change it to an implied range of averaging in X,


  yes? set data levitus_climatology
  yes? let mt = temp[x=@AVE,y=90S:90N@AVE,z=0:6000@AVE]
  yes? let a = {0, 0, 1, 1}
  yes? plot/line/symbol/vlimits=-1:4/hlimits=0:5 a*mt
   **ERROR: inconsistent sizes of data regions: can't label X axis of MT

It really should treat these two examples the same, so this is a bit of a bug -- It's incorrectly deciding it can't resolve the context in X when combining the X information for variables A and MT.

--Ansley

On 3/29/2018 7:26 PM, Ryo Furue wrote:
Hi Ansley,

On Fri, Mar 30, 2018 at 2:24 AM, Ansley C. Manke <ansley.b.manke@xxxxxxxx> wrote:

I think this will solve it: You could remove the dependence on the original grid for the single-valued variable lvi by evaluating it in the command.  Use the grave-accent syntax,

let/unit="Sv"/title="Total Net Transport" c = `lvi`


I started to write that answer as a response to Rebecca's question, but then I didn't know when you *need* to explicitly reduce a multi-dimensional variable to a scalar as you write above.  For example, you don't need to explicitly reduce it in the following:

yes? set data levitus_climatology
yes? let mt = temp[x=0:360@AVE,y=90S:90N@AVE,z=0:6000@AVE]
yes? let a = {0, 0, 1, 1}
yes? plot/line/symbol/vlimits=-1:4/hlimits=0:5 a*mt, 1 

(FERRET v6.94; Darwin 14.1.0 - 02/26/15)

Cheers,
Ryo



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

Privacy Policy | Disclaimer | Accessibility Statement