[ncl-talk] Warning: The 'lon2d' attribute must either be the same dimension

Mary Haley haley at ucar.edu
Thu Jan 5 08:45:41 MST 2017


Barry,

I was unable to run the script because I was missing an ASCII file.

I think the problem is that NCL is trying to add a longitude cyclic point,
and you don't want to do this for WRF data. What's happening is that NCL is
taking your 270 x 270 data array and turning it into a 270 x 271 array, but
the lat2d and lon2d are untouched (because gsnAddCyclic doesn't touch
these), and hence you end up with two arrays of different sizes.

Try setting:

  res at gsnAddCyclic = False

--Mary


On Thu, Jan 5, 2017 at 1:42 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:

> Hello:
>
> I thought that I have done what was indicated on this page, but I continue
> to get an error in dimensioning the second variable.  I am trying to plot a
> subset of the first variable (no problem), and then extract the same subset
> from the second variable. I've done it before, but
> it doesn't work here.
>
> I been at this about 4 or 5 hours, tried different things, including
> adapting the suggestions here:
>
> https://www.ncl.ucar.edu/Support/talk_archives/2012/2697.html
>
> I uploaded an extraction of the original WRF file, in case this is need.
>
> Thank you.
>
> ftp> put wrfsnow.ncl
> local: wrfsnow.ncl remote: wrfsnow.ncl
> 229 Entering Extended Passive Mode (|||49155|).
> 150 Ok to send data.
> 100% |********************************************************************|
>  7521        3.06 MiB/s    00:00 ETA
> 226 Transfer complete.
> 7521 bytes sent in 00:00 (11.93 KiB/s)
> ftp> put wrfsnow.out.file
> local: wrfsnow.out.file remote: wrfsnow.out.file
> 229 Entering Extended Passive Mode (|||49161|).
> 150 Ok to send data.
> 100% |********************************************************************|
>  2566        8.21 MiB/s    00:00 ETA
> 226 Transfer complete.
> 2566 bytes sent in 00:00 (6.15 KiB/s)
> ftp> put file_for_ncltalk.nc
> local: file_for_ncltalk.nc remote: file_for_ncltalk.nc
> 229 Entering Extended Passive Mode (|||49179|).
> 150 Ok to send data.
> 100% |********************************************************************|
>  2279 KiB  278.71 KiB/s    00:00 ETA
> 226 Transfer complete.
> 2333728 bytes sent in 00:08 (260.45 KiB/s)
>
>
> --
> Barry H. Lynn, Ph.D
> Senior Lecturer,
> The Institute of the Earth Science,
> The Hebrew University of Jerusalem,
> Givat Ram, Jerusalem 91904, Israel
> Tel: 972 547 231 170
> Fax: (972)-25662581
>
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-3108>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170105/ad08ceaa/attachment.html 


More information about the ncl-talk mailing list