[ncl-talk] message warning check_for_y_lat_coord

zilore mumba zmumba at yahoo.com
Sat Apr 6 10:59:10 MDT 2019


Hello,My apologies for once again asking something very basic. I am not able to plot my data due to incorrect capture of coordinates. The first part of my script is:begin
  
  f = addfile("~/CORDEX/DATA/pr_AFR-44_MPI-M-MPI-ESM-LR_historical_r1i1p1_MPI-CSC-REMO2009_v1_day_1971-2000.nc","r")
  p = f->pr(0,:,:)

 printVarSummary(p)
The above command (printVarSummary) gives (in part):
Variable: p
Type: float
Total Size: 155976 bytes
            38994 values
Number of Dimensions: 2
Dimensions and sizes:    [y | 201] x [x | 194]
Coordinates: 
Number Of Attributes: 11
  time :    7701.5
  standard_name :    precipitation_flux
  long_name :    Precipitation
  units :    kg m-2 s-1
  coordinates :    lat lon
  _FillValue :    1e+20
  missing_value :    1e+20
  
>From the various ncl-talk posts I tried varying combinations of the following code

  lat = f->lat
  lon = f->lon

;  p!0="time" ; assign attributes
  p!0="lat"
  p!1="lon"

  lon at long_name="longitude"
  lon at units="degrees_east"
  lat at long_name="latitude"
  lat at units="degrees_north"

;  p&lon=lon
;  p&lat=lat
Nothing works. Help will be appreciated.




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190406/d3e183de/attachment.html>


More information about the ncl-talk mailing list