[ncl-talk] Fwd: Another dimensions problem

Barry Lynn barry.h.lynn at gmail.com
Wed Feb 1 10:38:37 MST 2017


Hi:

Here are the working versions.

*For reference*, I have attached the program (feed_data.ncl) that I used to
read an ascii file of data values and overwrite my wrfinput variable
"l_obs" (not a standard variable, but one I added to the Registry).

I have also attached the program (thank you Alan) I used for mapping the
changed wrfinput file.

Barry

On Wed, Feb 1, 2017 at 7:03 PM, Alan Brammer <abrammer at albany.edu> wrote:

> 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>
> Date: Sun, Jan 29, 2017 at 2:36 PM
> Subject: Another dimensions problem
> To: ncl-talk <ncl-talk at ucar.edu>
>
>
> Hi:
>
> I cannot succeed to map a variable from the 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
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(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
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> US 914 432 3108 <(914)%20432-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
>
>
>


-- 
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170201/4d1998b3/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: l_obs_map.ncl
Type: application/octet-stream
Size: 2276 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170201/4d1998b3/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: l_obs_map.png
Type: image/png
Size: 49728 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170201/4d1998b3/attachment.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: feed_data.ncl
Type: application/octet-stream
Size: 3184 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170201/4d1998b3/attachment-0001.obj 


More information about the ncl-talk mailing list