[ncl-talk] Fwd: Another dimensions problem

Alan Brammer abrammer at albany.edu
Wed Feb 1 10:03:22 MST 2017


There’s something weird going on with how ncl interprets the lat2d and lon2d attributes.   

If you redefine the attributes in the script as you had commented out.
e.g.
l_obs at lat2d :=  xlat(0,:,:)       ; this is for plotting
l_obs at lon2d := xlon(0,:,:)     ; using gsn_csm routines

When they get written to netcdf they are converted to actual 1d arrays.  While they’re in the script they are in a weird world of being a fake 2d array.  

I’m surprised that NCL doesn’t handle a 1d array and unwrap it accordingly though.  


Good luck.




> On 1 Feb 2017, at 11:17, Barry Lynn <barry.h.lynn at gmail.com> wrote:
> 
> I hope someone might have a suggestion.  Thank you.
> ---------- Forwarded message ----------
> From: Barry Lynn <barry.h.lynn at gmail.com <mailto:barry.h.lynn at gmail.com>>
> Date: Sun, Jan 29, 2017 at 2:36 PM
> Subject: Another dimensions problem
> To: ncl-talk <ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>>
> 
> 
> Hi:
> 
> I cannot succeed to map a variable from the wrfinput_d02.nc <http://wrfinput_d02.nc/> file.
> 
> I get a dimension problem (different dimensions, different sizes).
> 
> This problem seems to happen often and using (/var/) didn't solve it.
> 
> Thank you,
> 
> Barry​
>  wrfinput_d02.nc <https://drive.google.com/file/d/0B3E3GjUeKpBdUXBVdk5VeW95WUk/view?usp=drive_web>​
> 
> -- 
> 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 <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 <tel:(914)%20432-3108>
> 
> 
> 
> -- 
> 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 <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
> <l_obs_map.ncl><map_output.file>_______________________________________________
> 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/20170201/b1b069b6/attachment.html 


More information about the ncl-talk mailing list