[ncl-talk] lat2d lon2d data mapping question

Dennis Shea shea at ucar.edu
Mon Jan 25 08:45:45 MST 2016


You have used the wrong syntax.

& is for "coordinate variables" [ one dimensional arrays]
-------------
See:  http://www.ncl.ucar.edu/Applications/pop.shtml

Click on virtually any link:   for example:  "Scalatrs"

       lat2d     = f->TLAT
       lon2d     = f->TLONG
       t at lon2d   = lon2d
       t at lat2d   = lat2d

Specifically

;;minus_djf!0 = "lat"         delete
;;minus_djf!1 = "lon"        delete
minus_mam at lat2d = TLAT
minus_mam at lon2d = TLONG

On Mon, Jan 25, 2016 at 2:19 AM, Hyun Marcia <hyun998877 at gmail.com> wrote:
> Hello ,
>
>
> I want to plot 2d-grid map
>
> But I can't understand lat2d and lon2d mapping.
>
>
>
>
> Variable: ssh01
> Type: float
> Total Size: 6488064000 bytes
>             1622016000 values
> Number of Dimensions: 3
> Dimensions and sizes:   [time | 13200] x [nlat | 384] x [nlon | 320]
> Coordinates:
>             time: [146031..547500]
> Number Of Attributes: 9
>   lat2d :       <ARRAY of 1351680 elements>
>   lon2d :       <ARRAY of 1351680 elements>
>   long_name :   Sea Surface Height
>   units :       centimeter
>   coordinates : TLONG TLAT time
>   grid_loc :    2110
>   cell_methods :        time: mean
>   _FillValue :  9.96921e+36
>   missing_value :       9.96921e+36
>
>     Variable: TLAT
>     Type: double
>     Total Size: 122880 values
>                 983040 bytes
>     Number of Dimensions: 2
>     Dimensions and sizes:       [ 384 <nlat> x 320 <nlon> ]
>     Chunking Info:      [ 384 <nlat> x 320 <nlon> ]
>     Coordinates:
>         Number of Attributes:        4
>             long_name   :       array of t-grid latitudes
>             units       :       degrees_north
>             _FillValue  :       9.969209968386869e+36
>             missing_value       :       9.969209968386869e+36
>
>     Variable: TLONG
>     Type: double
>     Total Size: 122880 values
>                 983040 bytes
>     Number of Dimensions: 2
>     Dimensions and sizes:       [ 384 <nlat> x 320 <nlon> ]
>     Chunking Info:      [ 384 <nlat> x 320 <nlon> ]
>     Coordinates:
>         Number of Attributes:        4
>             long_name   :       array of t-grid longitudes
>             units       :       degrees_east
>             _FillValue  :       9.969209968386869e+36
>             missing_value       :       9.969209968386869e+36
>
>
> and my coding is.....
>
>
>
> slp_djf = dim_rmvmean_n_Wrap(month_to_season(ssh01,"DJF"),0)
>
>
> minus_djf =
> dim_avg_n_Wrap(slp_djf(0:99,:,:),0)-dim_avg_n_Wrap(slp_djf(100:199,:,:),0)
>
> minus_djf!0 = "lat"
> minus_djf!1 = "lon"
> minus_mam&lat= TLAT
> minus_mam&lon= TLONG
> ???
> ....
>
> But this cording is not match up mp plot.
>
> How cna I match this 2d grid data?
>
> Thanks.
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list