[Thread Prev][Thread Next][Index]

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



Hi Rebecca,

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`

Ansley

On 3/23/2018 1:43 PM, Rebecca Lynn Beadling wrote:
Hello all,

I am trying to use poly to plot a bar chart of values and have an issue where my calculated value (an integrated value from model data) still has a grid associated with it and is leading to following error which inhibits me from making the plot:

" **ERROR: inconsistent sizes of data regions: can't label X axis of C”

Please see the script below:

!! a anchors the bar
let a = {0,0,1,1}
let/title="Layer" b = {0.5,1.5,1.5,0.5}
let/title="Layer" f = {0.02,0.23,0.23,0.02}

set text/font=arial/bold/ISIZ=4

ppl axlabp -1,0

!!!!!!!!!!!! Layer Transport !!!!!!!!!!!

pal blue
let/unit="Sv"/title="Total Net Transport" c = lvi
poly/nok/nol/hlim=-20:20:2/vlim=13:0:-0.5 a*c,b,1



yes? show grid lvi

    GRID (G016)

 name       axis              # pts   start                end                 subset

 XAX       LONGITUDE         1080mi   0.167E(0.16667)      0.167W(359.83)      compressed

 YAX       LATITUDE           294 i   78S                  29.945S             full

 ZAX       Z (DEPTH)           52 i   2.1                  5800                compressed

 ITIME     T                   60 r   1                    60                  compressed


yes? list lvi

             VARIABLE : LV[X=@DIN,Z=@DIN,L=@AVE]/10^6

             LONGITUDE: 0E(0.000005) to 0E(360)

             LATITUDE : 29.9S

             Z (DEPTH): -0.2 to 6000

             T        : 0.5 to 60.5

          5.106


yes? show grid a

    GRID XABSTRACT

 name       axis              # pts   start                end                 subset

 ABSTRACT  X             99999999 r   1                    1.E+08              3 pts

 normal    Y

 normal    Z

 normal    T

yes? list a

             VARIABLE : {0,0,1,1}

             SUBSET   : 4 points (X)

 1   / 1:  0.000

 2   / 2:  0.000

 3   / 3:  1.000

 4   / 4:  1.000



Is there a way to disassociate the grid with the 5.106 value of the lvi variable so that it can be directly applied to a?

Thank you ahead of time,

Becki




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

Privacy Policy | Disclaimer | Accessibility Statement