From: Ansley Manke <ansley.b.manke@xxxxxxxx>
To: jagadish karmacharya <j_karmacharya@xxxxxxxxx>
Cc: Ferret users <oar.pmel.ferret_users@xxxxxxxx>
Sent: Monday, August 1, 2011 7:47 PM
Subject: Re: [ferret_users] error ploting bar charthi -
The bar-chart script gets the independent axis of the _expression_ that you send it, and defines variables on that axis based on its start and end points. I think what's going on is that Ferret is trying to evaluate the _expression_
let clm = precip[L=@ave]
based on the context of variables that are being defined in the script.
A simple fix would be to either evaluate the scalar variable clm when you use it in the definition of variable anom:
let anom=precip-`clm`
which evaluates the variable in terms of the default context for the variable from the file. Or you could define clm so that its context is explicitly defined,
let clm = precip[L=1:12@ave]
I think that either of these will fix the problem.
Ansley
On 8/1/2011 6:19 AM, jagadish karmacharya wrote:Dear ferret users,
I want to make a bar chart and used the follwing commands:
use file.nc; set region/x=80/y=25; let clm=precip[l=@ave]; let anom=precip-clmplot/vlimit=-10:10 0*precip; go bar_chart3 poly/ov/line anom, anom
But I am getting following error:**ERROR: inconsistent sizes of data regions: T axis
T[L=1:12] has 12 points (L=01:12)
_expression_ has 11 points (L=01:11)
poly/ov/line/coord_ax=Z BCHx4,BCHy4 ,anom
Command file, command group, or REPEAT execution aborted
I am able to list or do line plot of the variable anom but not the bar chart.
I tried to define anom as below but still the problem persists:
let anom1=precip-clm; define axis/t=1:12:1/unit=months tmon; let anom=anom1[gt=tmon@asn]
Please advice me.
Best regards,
Jagadish