Re: fatal<east_u> is not a dimension name in variable( u ), could not determine dimension number

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 28 Apr 2008 09:13:25 -0600 (MDT)

On Mon, 28 Apr 2008, [gb2312] 大奎 王 wrote:

> Hi,
> when the .ncl script goes onto the line:
> ua = dim_avg_Wrap(u(north_u|:, east_u|:, time|:))
>
> for u :
> nc{'u'} = ncfloat('time', 'z', 'y', 'x'); %% 9788570 elements.
> nc{'u'}.long_name = ncchar('x-velocity');
> nc{'u'}.units = ncchar('metre/sec');
> nc{'u'}.coordinates = ncchar('east_u north_u zz');
>
> error information are as follows:
>
> fatal<east_u> is not a dimension name in variable( u ),could not determine dimension number

The error message is indicating that "east_u" is not a dimension name
of "u". You can verify this with:

    printVarSummary(u)

You should see something like this:

Variable: u
Type: float
Total Size: 1253376 bytes
             313344 values
Number of Dimensions: 3
Dimensions and sizes: [time | 1] x [north_u | 96] x [east_u | 192]
Coordinates:
             time: [0..0]
             north_u: [-88.57217..88.57217]
             east_u: [ 0..358.125]

If you don't see "east_u" in the "Dimension and sizes" list, then
"east_u" is not a named dimension of "u".

If "u" doesn't have dimension names, you can add them with something
like:

     u!0 = "time"
     u!1 = "east_u"
     u!2 = "north_u"

In the above case, you would be naming the leftmost dimension "time",
the middle dimension "east_u", and the rightmost dimension "north_u".
Of course, you need to do this in whatever order your variable's
are in.

For more information about naming dimensions in NCL, and
about associating coordinate variables, see the "Dimensions"
section at:

   http://www.ncl.ucar.edu/Document/Manuals/Ref_Manual/NclVariables.shtml

--Mary

>
> many thanks for your time and kindness!
>
>
>
> ---------------------------------
> 雅虎邮箱,您的终生邮箱!

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Apr 28 2008 - 09:13:25 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 29 2008 - 09:23:44 MDT