Re: Question on the plotting 2-D figure from output of MOM4 ocean model?

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 01 2012 - 08:34:32 MDT

Seems the graphics should work.

The "data" variable is "data(yt,xt)"

yet you have "time" as a named dimension. There is no 'time' dimension

     x = dim_avg_Wrap(data(yt|:,xt|:,time|:))

*IF* 'data' was (time,yt,xt) then it is recommended that you use

     x = dim_avg_n_Wrap(data, 0)

On 6/1/12 3:33 AM, xiang lin wrote:
> Hi, all
> Now I am dealing with some output of MOM4 ocean model. Here below
> show a typical variable I
> want to plot.
>
> Variable: data
> Type: float
> Total Size: 6912000 bytes
> 1728000 values
> Number of Dimensions: 2
> Dimensions and sizes: [yt | 160] x [xt | 180]
> Coordinates:
> yt: [-81.00024..78.49694]
> xt: [-279.0333..79.03331]
>
> *And the variable of "data" need the other two dimension variable to
> make the plot. *
>
> Variable: lon
> Type: float
> Total Size: 115200 bytes
> 28800 values
> Number of Dimensions: 2
> Dimensions and sizes: [yt | 160] x [xt | 180]
> Coordinates:
> yt: [-81.00024..78.49694]
> xt: [-279.0333..79.03331]
> Number Of Attributes: 4
> long_name : longitude
> units : degrees
> cell_methods : time: point
> standard_name : none
>
> Variable: lat
> Type: float
> Total Size: 115200 bytes
> 28800 values
> Number of Dimensions: 2
> Dimensions and sizes: [yt | 160] x [xt | 180]
> Coordinates:
> yt: [-81.00024..78.49694]
> xt: [-279.0333..79.03331]
> Number Of Attributes: 4
> long_name : latitude
> units : degrees
> cell_methods : time: point
> standard_name : none
>
>
> I am not fluent with the tripolar coordinate of MOM4, and I try to
> follow the instruction from the similar examples of NCL.
> However, I got some warnning message as below and the plot was also
> incorrect.
>
> warning:ScalarFieldSetValues: 2d coordinate array sfXArray has an
> incorrect dimension size: defaulting sfXArray
> warning:ScalarFieldSetValues: 2d coordinate array sfYArray has an
> incorrect dimension size: defaulting sfYArray
>
> Anyone can show me some instruction? Thanks !
>
> Btw , my script were also attached.
>
> Regards
>
>
> Lin
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Jun 1 08:34:46 2012

This archive was generated by hypermail 2.1.8 : Wed Jun 06 2012 - 15:17:44 MDT