[ncl-talk] sub: netcdf write 2dlat/2dlon

dale zuri dalezuri at gmail.com
Fri May 8 03:32:19 MDT 2020


Hi NCL user,
I have been trying to write a variable that is function of 2dlat/lon to the
netcdf file.
I'm getting following error. I would appreciate any help to fix this error.

Thanks

VRH!0    = "lat2d"                      ; assign named dimensions

VRH!1    = "lon2d"


VRH&lat2d  = lat2d                     ; copy lat from T to ORO

VRH&lat2d  = lon2d


ncdf->VRH = VRH


Variable: VRH

Type: integer

Total Size: 491520 bytes

            122880 values

Number of Dimensions: 2

Dimensions and sizes: [nj | 384] x [ni | 320]

Coordinates:

Number Of Attributes: 3

  lat2d : <ARRAY of 122880 elements>

  lon2d : <ARRAY of 122880 elements>

  _FillValue : -2147483647

fatal:Coordinate variables must have one dimension only

fatal:No coordinate variable exists for dimension (lat2d) in variable (VRH)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20200508/f0614866/attachment.html>


More information about the ncl-talk mailing list