[ncl-talk] lat2d lon2d data mapping question

Hyun Marcia hyun998877 at gmail.com
Mon Jan 25 02:19:40 MST 2016


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20160125/6312661a/attachment.html 


More information about the ncl-talk mailing list